2 types derived from InputBinding
PresentationCore (2)
System\Windows\Input\Command\KeyBinding.cs (1)
23
public class KeyBinding :
InputBinding
System\Windows\Input\Command\MouseBinding.cs (1)
24
public class MouseBinding :
InputBinding
18 instantiations of InputBinding
PresentationCore (1)
System\Windows\Input\Command\InputBinding.cs (1)
164
return new
InputBinding
();
PresentationFramework (16)
MS\Internal\Commands\CommandHelpers.cs (1)
106
CommandManager.RegisterClassInputBinding(controlType, new
InputBinding
(command, inputGestures[i]));
System\Windows\Controls\DataGrid.cs (2)
56
CommandManager.RegisterClassInputBinding(ownerType, new
InputBinding
(BeginEditCommand, new KeyGesture(Key.F2)));
61
CommandManager.RegisterClassInputBinding(ownerType, new
InputBinding
(CancelEditCommand, new KeyGesture(Key.Escape)));
System\Windows\Controls\DocumentViewer.cs (3)
1638
new
InputBinding
(NavigationCommands.Zoom,
1650
new
InputBinding
(DocumentViewer.FitToMaxPagesAcrossCommand,
1662
new
InputBinding
(DocumentViewer.FitToMaxPagesAcrossCommand,
System\Windows\Controls\SinglePageViewer.cs (10)
1271
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.PreviousPage, new KeyGesture(Key.Left)));
1272
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.PreviousPage, new KeyGesture(Key.Up)));
1273
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.PreviousPage, new KeyGesture(Key.PageUp)));
1274
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.NextPage, new KeyGesture(Key.Right)));
1275
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.NextPage, new KeyGesture(Key.Down)));
1276
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.NextPage, new KeyGesture(Key.PageDown)));
1277
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.FirstPage, new KeyGesture(Key.Home)));
1278
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.FirstPage, new KeyGesture(Key.Home, ModifierKeys.Control)));
1279
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.LastPage, new KeyGesture(Key.End)));
1280
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.LastPage, new KeyGesture(Key.End, ModifierKeys.Control)));
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2134
new
InputBinding
(command, inputGesture));
49 references to InputBinding
PresentationCore (40)
System\Windows\Input\Command\CommandManager.cs (3)
181
public static void RegisterClassInputBinding(Type type,
InputBinding
inputBinding)
303
InputBinding
inputBinding = localInputBindings.FindMatch(targetElement, inputEventArgs);
323
InputBinding
inputBinding = classInputBindings.FindMatch(targetElement, inputEventArgs);
System\Windows\Input\Command\InputBinding.cs (7)
57
DependencyProperty.Register("Command", typeof(ICommand), typeof(
InputBinding
), new UIPropertyMetadata(null, new PropertyChangedCallback(OnCommandPropertyChanged)));
87
DependencyProperty.Register("CommandParameter", typeof(object), typeof(
InputBinding
));
108
DependencyProperty.Register("CommandTarget", typeof(IInputElement), typeof(
InputBinding
));
173
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
182
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
191
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
200
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
System\Windows\Input\Command\InputBindingCollection.cs (30)
88
return this.Contains(key as
InputBinding
);
98
InputBinding
inputBinding = value as
InputBinding
;
109
this.Insert(index, value as
InputBinding
);
118
this.Add(inputBinding as
InputBinding
);
128
this.Remove(inputBinding as
InputBinding
);
142
InputBinding
inputBinding = value as
InputBinding
;
154
public
InputBinding
this[int index]
171
InputBinding
oldInputBinding = null;
194
public int Add(
InputBinding
inputBinding)
199
_innerBindingList = new System.Collections.Generic.List<
InputBinding
>(1);
230
public int IndexOf(
InputBinding
value)
248
_innerBindingList = new System.Collections.Generic.List<
InputBinding
>(collection.Count);
253
InputBinding
inputBinding = collectionEnum.Current as
InputBinding
;
272
public void Insert(int index,
InputBinding
inputBinding)
290
public void Remove(
InputBinding
inputBinding)
294
if (_innerBindingList.Remove(inputBinding as
InputBinding
))
309
InputBinding
oldInputBinding = null;
359
List<
InputBinding
> oldInputBindings = new List<
InputBinding
>(_innerBindingList);
362
foreach (
InputBinding
inputBinding in oldInputBindings)
379
System.Collections.Generic.List<
InputBinding
> list = new System.Collections.Generic.List<
InputBinding
>(0);
397
public bool Contains(
InputBinding
key)
412
public void CopyTo(
InputBinding
[] inputBindings, int index)
420
internal
InputBinding
FindMatch(object targetElement, InputEventArgs inputEventArgs)
424
InputBinding
inputBinding = this[i];
452
private List<
InputBinding
> _innerBindingList;
PresentationFramework (9)
System\Windows\Controls\DocumentViewer.cs (3)
1637
InputBinding
zoom100InputBinding =
1649
InputBinding
wholePageInputBinding =
1661
InputBinding
twoPagesInputBinding =
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
386
case 293: t = () => typeof(
InputBinding
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7920
Type type = typeof(System.Windows.Input.
InputBinding
);
7921
DependencyProperty dp = System.Windows.Input.
InputBinding
.CommandProperty;
7923
this.GetXamlType(typeof(System.Windows.Input.
InputBinding
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5915
typeof(System.Windows.Input.
InputBinding
),
System\Windows\Markup\KnownTypes.cs (1)
5840
case KnownElements.InputBinding: t = typeof(System.Windows.Input.
InputBinding
); break;