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); }
protected override void OnApplyTemplate() { base.OnApplyTemplate(); if (GetTemplateChild("CloseButton") is Button b) { b.Clicked += (_, __) => DialogNotifier.Cancel(); } }
/// <summary> /// 通知ダイアログを表示します。 /// </summary> public void ShowDialog() { if (ShowsDialog) { var dialog = new DialogNotifier(DialogData); dialog.FormClosing += dialog_FormClosing; NotifierManager.Instance.ShowNotifier(dialog); } }
public async void GetRid() { Instance = null; prevIndex = CarouselView.Position; prevUID = (BindingContext as ProjectCardViewModel)?.UID ?? string.Empty; RunAnimation(true); await Task.Delay(700); DialogNotifier.Complete(); }
/// <summary> /// 通知ダイアログを表示します。 /// </summary> public void ShowDialog(System.Windows.Forms.FormClosingEventHandler customClosingHandler = null) { if (ShowsDialog) { var dialog = new DialogNotifier(DialogData); dialog.FormClosing += dialog_FormClosing; if (customClosingHandler != null) { dialog.FormClosing += customClosingHandler; } NotifierManager.Instance.ShowNotifier(dialog); } }
private async void ConfirmButton_Clicked(object sender, EventArgs e) { MainSL.InputTransparent = true; await Task.WhenAll(new[] { MainSL.FadeTo(0, easing: Easing.CubicInOut), ThankSL.ScaleTo(1, 500, Easing.SpringOut), ThankSL.FadeTo(1, easing: Easing.CubicInOut), }); await Task.Delay(800); DialogNotifier.Complete(); }
void OK_Clicked(System.Object sender, System.EventArgs e) { DialogNotifier.Complete(); }
private void AcceptAndClose_Tapped(object sender, EventArgs e) { DialogNotifier.Complete(); }
private void CloseButton_Clicked(object sender, EventArgs e) => DialogNotifier.Cancel();
void Handle_Cancel_Clicked(object sender, System.EventArgs e) { DialogNotifier.Cancel(); }
private void SettingsButton_Clicked(object sender, EventArgs e) { DialogNotifier.Cancel(); }
private void ConfirmButton_Clicked(object sender, EventArgs e) { DialogNotifier.Complete(); }
void Handle_Cancel_Clicked(object sender, System.EventArgs e) { // send cancel notification to the dialog. DialogNotifier.Cancel(); }
void Handle_OK_Clicked(object sender, System.EventArgs e) { // send complete notification to the dialog. DialogNotifier.Complete(); }
void Cancel_Clicked(System.Object sender, System.EventArgs e) { DialogNotifier.Cancel(); }
void Handle_OK_Clicked(object sender, System.EventArgs e) { DialogNotifier.Complete(); }
async void CloseDialog(object sender, EventArgs args) { DialogNotifier.Cancel(); }
private void SubmitButton_Clicked(object sender, EventArgs e) { completed = true; DialogNotifier.Complete(); }
private void CancelAndClose_Tapped(object sender, EventArgs e) { DialogNotifier.Cancel(); }
private void SaveButton_Clicked(object sender, EventArgs e) => DialogNotifier.Complete();
public void CloseDialog() { DialogNotifier.Cancel(); }