コード例 #1
0
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (!(value is Key))
            {
                throw new ArgumentException("value should be a type of System.Windows.Input.Key");
            }

            Key key = (Key)value;

            return(FormsWpfKeysHelper.FormsKeyFromWpfKey(key));
        }