You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
namespace Views;
|
|
|
|
public partial class ContainerBase : ContentView
|
|
{
|
|
public bool IsConnected
|
|
{
|
|
get => container_flayout.IsConnected;
|
|
set => container_flayout.IsConnected = value;
|
|
}
|
|
|
|
public bool NeedReturn
|
|
{
|
|
get => container_flayout.NeedReturn;
|
|
set => container_flayout.NeedReturn = value;
|
|
}
|
|
|
|
public ContainerBase()
|
|
{
|
|
InitializeComponent();
|
|
|
|
BindingContext = this;
|
|
}
|
|
|
|
|
|
// Bind MyContent
|
|
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);
|
|
}
|
|
|
|
// Bind MyFlyoutContent
|
|
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);
|
|
}
|
|
}
|