|
|
|
@ -7,7 +7,8 @@ public partial class ContainerBase : ContentView
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static readonly BindableProperty MyContentProperty =
|
|
|
|
|
// Bind MyContent
|
|
|
|
|
public static readonly BindableProperty MyContentProperty =
|
|
|
|
|
BindableProperty.Create("MyContent", typeof(View), typeof(ContainerBase), new Grid());
|
|
|
|
|
|
|
|
|
|
public View MyContent
|
|
|
|
@ -16,6 +17,7 @@ public partial class ContainerBase : ContentView
|
|
|
|
|
set => SetValue(MyContentProperty, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Bind MyFlyoutContent
|
|
|
|
|
public static readonly BindableProperty MyFlyoutContentProperty =
|
|
|
|
|
BindableProperty.Create("MyFlyoutContent", typeof(View), typeof(ContainerBase), new Grid());
|
|
|
|
|
|
|
|
|
@ -24,4 +26,14 @@ public partial class ContainerBase : ContentView
|
|
|
|
|
get => (View)GetValue(MyFlyoutContentProperty);
|
|
|
|
|
set => SetValue(MyFlyoutContentProperty, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Bind IsNotConnected
|
|
|
|
|
public static readonly BindableProperty IsNotConnectedProperty =
|
|
|
|
|
BindableProperty.Create("IsNotConnected", typeof(bool), typeof(Button), false);
|
|
|
|
|
|
|
|
|
|
public bool IsNotConnected
|
|
|
|
|
{
|
|
|
|
|
get => (bool)GetValue(IsNotConnectedProperty);
|
|
|
|
|
set => SetValue(IsNotConnectedProperty, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|