From 55b0cf2203a03d9b2468dee8c7207fec28cae74a Mon Sep 17 00:00:00 2001 From: Nigel Sampson Date: Mon, 30 Nov 2015 08:42:50 +1300 Subject: [PATCH] Use cells in default item template for Xamarin Forms --- src/Caliburn.Micro.Platform/xforms/ConventionManager.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Caliburn.Micro.Platform/xforms/ConventionManager.cs b/src/Caliburn.Micro.Platform/xforms/ConventionManager.cs index e41e3bbdb..600719714 100644 --- a/src/Caliburn.Micro.Platform/xforms/ConventionManager.cs +++ b/src/Caliburn.Micro.Platform/xforms/ConventionManager.cs @@ -26,7 +26,7 @@ public static class ConventionManager public static bool OverwriteContent = false; private static readonly Func CreateDefaultItemTemplate = () => { - + var content = new ContentView { HorizontalOptions = LayoutOptions.FillAndExpand, @@ -35,7 +35,12 @@ public static class ConventionManager content.SetBinding(View.ModelProperty, new Binding()); - return content; + var cell = new ViewCell + { + View = content + }; + + return cell; }; ///