private void HandleGeneratePassphrase(PasswordBox obj) { var passphrase = RegisterController.GeneratePassphrase(dicewareWordsPath); var dialog = new YesNoDialogFormViewModel(navigator, $"Generated passphrase is: \n\n{passphrase}\n\nDo you accept?"); dialog.OnSubmit += confirmed => { if (!confirmed) { return; } VisiblePasswordText = obj.Password = passphrase; skipPasswordStrengthCheck = true; HandleRegister(obj); }; navigator.OpenFlyoutPanel(dialog); }