Skip to content

Commit

Permalink
Use cells in default item template for Xamarin Forms
Browse files Browse the repository at this point in the history
  • Loading branch information
nigel-sampson committed Nov 29, 2015
1 parent 8ef98db commit 55b0cf2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Caliburn.Micro.Platform/xforms/ConventionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static class ConventionManager
public static bool OverwriteContent = false;

private static readonly Func<object> CreateDefaultItemTemplate = () => {

var content = new ContentView
{
HorizontalOptions = LayoutOptions.FillAndExpand,
Expand All @@ -35,7 +35,12 @@ public static class ConventionManager

content.SetBinding(View.ModelProperty, new Binding());

return content;
var cell = new ViewCell
{
View = content
};

return cell;
};

/// <summary>
Expand Down

0 comments on commit 55b0cf2

Please sign in to comment.