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