Exemple #1
0
 private async void Button_Click(object sender, RoutedEventArgs e)
 {
     TextBlock text = new TextBlock()
     {
         Text = "Hi",
         HorizontalAlignment = HorizontalAlignment.Center,
         VerticalAlignment   = VerticalAlignment.Center
     };
     CreateAccountView createAccount = new CreateAccountView();
     await DialogHost.Show(text, "DS");
 }
Exemple #2
0
 private async void BtnCreateAccount_Click(object sender, RoutedEventArgs e)
 {
     CreateAccountView createaccount = new CreateAccountView();
     await DialogHost.Show(createaccount, "MainWindow");
 }