We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Exception when calling ShowAsPopupAsync twice:
private async void CustomInputPasswdValue_OnClick(object sender, RoutedEventArgs e) { ButtonDefinition[] buttons = new ButtonDefinition[2]; buttons[0] = new ButtonDefinition() { IsDefault = true, Name = "OK" }; buttons[1] = new ButtonDefinition() { IsCancel = true, Name = "Cancel" }; var CustomParam = new MessageBoxCustomParams { ContentTitle = "Custom Input Passwd Value", ContentMessage = $"Please enter a string", Icon = MsBox.Avalonia.Enums.Icon.Info, InputParams = new InputParams() { Label = "Passwd:", DefaultValue = "AAA" }, // , PasswordChar = "*" ButtonDefinitions = buttons, }; var box = MessageBoxManager.GetMessageBoxCustom(CustomParam); var result = await box.ShowAsPopupAsync(this); // Fail:On box2 ShowAsPopupAsync // System.InvalidOperationException:“No loaded DialogHost have an Identifier property matching dialogIdentifier ('MsBoxIdentifier4931f5a5-d63a-4814-8613-8e3870df1497') argument.” string InputValue = box.InputValue; box = null; if (result == "OK") { var box2 = MessageBoxManager.GetMessageBoxStandard("Caption", $"Your passwd value is:{InputValue}", ButtonEnum.Ok); await box2.ShowAsPopupAsync(this); } }
Same as #161
The text was updated successfully, but these errors were encountered:
I have the same error. It looks like something gets unregistered after showing dialog as popup.
Sorry, something went wrong.
No branches or pull requests
Exception when calling ShowAsPopupAsync twice:
Same as #161
The text was updated successfully, but these errors were encountered: