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.
50 lines
1.4 KiB
50 lines
1.4 KiB
using DataPersistence;
|
|
using Model;
|
|
|
|
namespace Views;
|
|
|
|
public partial class ContainerFlyout : ContentView
|
|
{
|
|
public DataManager DataMgr => (App.Current as App).DataMgr;
|
|
public User user { get; private set; }
|
|
|
|
|
|
public ContainerFlyout()
|
|
{
|
|
|
|
InitializeComponent();
|
|
BindingContext = this;
|
|
user = DataMgr.Data[nameof(User)].Cast<User>().Last();
|
|
}
|
|
|
|
// Bind MyFlyoutContent
|
|
public static readonly BindableProperty MyFlyoutContentProperty =
|
|
BindableProperty.Create("MyFlyoutContent", typeof(View), typeof(ContainerFlyout), new Grid());
|
|
|
|
public View MyFlyoutContent
|
|
{
|
|
get => (View)GetValue(MyFlyoutContentProperty);
|
|
set => SetValue(MyFlyoutContentProperty, value);
|
|
}
|
|
|
|
// Bind IsNotConnected
|
|
public static readonly BindableProperty IsNotConnectedProperty =
|
|
BindableProperty.Create("IsNotConnected", typeof(bool), typeof(Button), true);
|
|
|
|
public bool IsNotConnected
|
|
{
|
|
get => (bool)GetValue(IsNotConnectedProperty);
|
|
set => SetValue(IsNotConnectedProperty, value);
|
|
}
|
|
|
|
// bind NeedReturn
|
|
public static readonly BindableProperty NeedReturnProperty =
|
|
BindableProperty.Create("NeedReturn", typeof(bool), typeof(Border), false);
|
|
|
|
public bool NeedReturn
|
|
{
|
|
get => (bool)GetValue(NeedReturnProperty);
|
|
set => SetValue(NeedReturnProperty, value);
|
|
}
|
|
}
|