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); } }