public RatingBarView()
        {
            InitializeComponent();

            var close = new TapGestureRecognizer();

            close.Tapped += async(s, e) =>
            {
                DialogNotifier.Cancel();
            };
            switch (Device.RuntimePlatform)
            {
            case Device.iOS:
                RatingBar.Margin        = new Thickness(0, 0, 0, 0);
                RatingBar.FillColor     = (Color)Application.Current.Resources["MainColor"];
                RatingBar.HeightRequest = 35;
                break;

            case Device.Android:
                break;

            default:
                break;
            }
            IconViewClose.GestureRecognizers.Add(close);
        }
예제 #2
0
 protected override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     if (GetTemplateChild("CloseButton") is Button b)
     {
         b.Clicked += (_, __) => DialogNotifier.Cancel();
     }
 }
 void Handle_Cancel_Clicked(object sender, System.EventArgs e)
 {
     DialogNotifier.Cancel();
 }
예제 #4
0
 void Cancel_Clicked(System.Object sender, System.EventArgs e)
 {
     DialogNotifier.Cancel();
 }
 private void CancelAndClose_Tapped(object sender, EventArgs e)
 {
     DialogNotifier.Cancel();
 }
예제 #6
0
 async void CloseDialog(object sender, EventArgs args)
 {
     DialogNotifier.Cancel();
 }
예제 #7
0
 private void SettingsButton_Clicked(object sender, EventArgs e)
 {
     DialogNotifier.Cancel();
 }
 void Handle_Cancel_Clicked(object sender, System.EventArgs e)
 {
     // send cancel notification to the dialog.
     DialogNotifier.Cancel();
 }
예제 #9
0
 private void CloseButton_Clicked(object sender, EventArgs e) => DialogNotifier.Cancel();
예제 #10
0
 public void CloseDialog()
 {
     DialogNotifier.Cancel();
 }