Esempio n. 1
0
        public RoutedCommandBase(String textKeys, RoutedCommandCallback execute, Object tag, RoutedCommandCanCallback canExecute)
        {
            _callbackExecute    = execute;
            _callbackCanExecute = canExecute;
            _tag = tag;

            Key          key;
            ModifierKeys modifier;

            if (ParseString(textKeys, out key, out modifier) == true)
            {
                AddGesture(key, modifier);
            }
        }
Esempio n. 2
0
        public RoutedCommandBase(String textKeys, RoutedCommandCallback execute, Object tag, RoutedCommandCanCallback canExecute)
        {
            _callbackExecute    = execute;
            _callbackCanExecute = canExecute;
            _tag                = tag;

            Key          key;
            ModifierKeys modifier;

            if (ParseString(textKeys, out key, out modifier) == true)
            {
                AddGesture(key, modifier);
            }
        }