namespace Views; public partial class ContainerBase : ContentView { public ContainerBase() { InitializeComponent(); } public static BindableProperty MyContentProperty = BindableProperty.Create("MyContent", typeof(View), typeof(ContainerBase), new Grid()); public View MyContent { get => (View)GetValue(MyContentProperty); set => SetValue(MyContentProperty, value); } }