inside my wpf application i have a dialog(Mahapp control) and i need to add a passwordbox to this dialog instead of the textinput.Any ideas of how to do that.
private async void ShowModalDialog_Click(object sender, RoutedEventArgs e)
{
popup.IsEnabled = false;
this.MetroDialogOptions.ColorScheme = UseAccentForDialog.IsEnabled ? MetroDialogColorScheme.Accented : MetroDialogColorScheme.Theme;
var result = await this.ShowInputAsync("FERMETURE DE L'APPLICATION.", "Tu dois demander à tes parents pour quitter." + "\n" + "Indiquer votre mot de passe pour quitter l'application.");
var wcf = new ServiceReferenceParent.ParentServiceClient();
Parent par = wcf.GetParent(parent.ParentId);
if (result == par.Password) //user pressed cancel
Application.Current.Shutdown() ;
}