using System; using System.Collections.Generic; using System.Text; using Xamarin.Forms; namespace TcuMobile.Controls.Popups { [ContentProperty(nameof(Content))] public class MaterialDialog : View { public static readonly BindableProperty ContentProperty = BindableProperty.Create(nameof(Content), typeof(View), typeof(MaterialDialog), default(View), BindingMode.TwoWay); public static readonly BindableProperty HeadlineProperty = BindableProperty.Create(nameof(Headline), typeof(string), typeof(MaterialDialog), default(string), BindingMode.TwoWay); public static readonly BindableProperty MessageProperty = BindableProperty.Create(nameof(Message), typeof(string), typeof(MaterialDialog), default(string), BindingMode.TwoWay); public static readonly BindableProperty CancelProperty = BindableProperty.Create(nameof(Cancel), typeof(string), typeof(MaterialDialog), default(string), BindingMode.TwoWay); public static readonly BindableProperty DeclineProperty = BindableProperty.Create(nameof(Decline), typeof(string), typeof(MaterialDialog), default(string), BindingMode.TwoWay); public static readonly BindableProperty AcceptProperty = BindableProperty.Create(nameof(Accept), typeof(string), typeof(MaterialDialog), default(string), BindingMode.TwoWay); public View Content { get => (View)GetValue(ContentProperty); set => SetValue(ContentProperty, value); } public string Headline { get => (string)GetValue(HeadlineProperty); set => SetValue(HeadlineProperty, value); } public string Message { get => (string)GetValue(MessageProperty); set => SetValue(MessageProperty, value); } public string Cancel { get => (string)GetValue(CancelProperty); set => SetValue(CancelProperty, value); } public string Decline { get => (string)GetValue(DeclineProperty); set => SetValue(DeclineProperty, value); } public string Accept { get => (string)GetValue(AcceptProperty); set => SetValue(AcceptProperty, value); } } }