protected override string GetText(TextBox textBox, object parameter) { var dialog = new ReadStringDialog { Owner = Application.Current.MainWindow }; if (dialog.ShowDialog() != true) return null; return Convert.ToBase64String(Encoding.UTF8.GetBytes(dialog.InputString)); }
protected override string GetText(TextBox textBox, object parameter) { var dialog = new ReadStringDialog { Owner = Application.Current.MainWindow }; if (dialog.ShowDialog() != true) { return(null); } return(Convert.ToBase64String(Encoding.UTF8.GetBytes(dialog.InputString))); }