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));
        }
示例#2
0
        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)));
        }