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