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"); }
private async void BtnCreateAccount_Click(object sender, RoutedEventArgs e) { CreateAccountView createaccount = new CreateAccountView(); await DialogHost.Show(createaccount, "MainWindow"); }