Пример #1
0
        private async void ShowAlertDialogButtonClickHandler(object sender, RoutedEventArgs args)
        {
            AlertDialogArguments dialogArgs = new AlertDialogArguments
            {
                Title         = "Greetings",
                Message       = "Hello, I'm MaterialDesignExtensions.",
                OkButtonLabel = "GOT IT"
            };

            await AlertDialog.ShowDialogAsync(MainWindow.DialogHostName, dialogArgs);
        }
Пример #2
0
        private async void ShowAlertDialogWithContentButtonClickHandler(object sender, RoutedEventArgs args)
        {
            AlertDialogArguments dialogArgs = new AlertDialogArguments
            {
                Title         = "Sports",
                Message       = "Some great sports:",
                OkButtonLabel = "OK",
                CustomContent = FindResource("SportsStackPanel")
            };

            await AlertDialog.ShowDialogAsync(MainWindow.DialogHostName, dialogArgs);
        }