public async void button_Click(object sender, RoutedEventArgs e) { Button btn = (Button) sender; //dialog.Resources["CustomDialogTest"]; string[] id = btn.Name.ToString().Split('_'); this.MetroDialogOptions.ColorScheme = MetroDialogColorScheme.Accented; var dialog = (BaseMetroDialog)this.Resources["CustomDialogTest"]; var mySettings = new MetroDialogSettings() { AffirmativeButtonText = "OK", AnimateShow = true, NegativeButtonText = "Go away!", FirstAuxiliaryButtonText = "Cancel", }; await this.ShowMetroDialogAsync(dialog); // this for close the dialog -> await this.HideMetroDialogAsync(dialog); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)