2 types derived from InputBinding
PresentationCore (2)
System\Windows\Input\Command\KeyBinding.cs (1)
24
public class KeyBinding :
InputBinding
System\Windows\Input\Command\MouseBinding.cs (1)
25
public class MouseBinding :
InputBinding
18 instantiations of InputBinding
PresentationCore (1)
System\Windows\Input\Command\InputBinding.cs (1)
165
return new
InputBinding
();
PresentationFramework (16)
MS\Internal\Commands\CommandHelpers.cs (1)
107
CommandManager.RegisterClassInputBinding(controlType, new
InputBinding
(command, inputGestures[i]));
System\Windows\Controls\DataGrid.cs (2)
57
CommandManager.RegisterClassInputBinding(ownerType, new
InputBinding
(BeginEditCommand, new KeyGesture(Key.F2)));
62
CommandManager.RegisterClassInputBinding(ownerType, new
InputBinding
(CancelEditCommand, new KeyGesture(Key.Escape)));
System\Windows\Controls\DocumentViewer.cs (3)
1639
new
InputBinding
(NavigationCommands.Zoom,
1651
new
InputBinding
(DocumentViewer.FitToMaxPagesAcrossCommand,
1663
new
InputBinding
(DocumentViewer.FitToMaxPagesAcrossCommand,
System\Windows\Controls\SinglePageViewer.cs (10)
1272
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.PreviousPage, new KeyGesture(Key.Left)));
1273
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.PreviousPage, new KeyGesture(Key.Up)));
1274
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.PreviousPage, new KeyGesture(Key.PageUp)));
1275
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.NextPage, new KeyGesture(Key.Right)));
1276
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.NextPage, new KeyGesture(Key.Down)));
1277
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.NextPage, new KeyGesture(Key.PageDown)));
1278
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.FirstPage, new KeyGesture(Key.Home)));
1279
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.FirstPage, new KeyGesture(Key.Home, ModifierKeys.Control)));
1280
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.LastPage, new KeyGesture(Key.End)));
1281
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.LastPage, new KeyGesture(Key.End, ModifierKeys.Control)));
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2135
new
InputBinding
(command, inputGesture));
49 references to InputBinding
PresentationCore (40)
System\Windows\Input\Command\CommandManager.cs (3)
182
public static void RegisterClassInputBinding(Type type,
InputBinding
inputBinding)
304
InputBinding
inputBinding = localInputBindings.FindMatch(targetElement, inputEventArgs);
324
InputBinding
inputBinding = classInputBindings.FindMatch(targetElement, inputEventArgs);
System\Windows\Input\Command\InputBinding.cs (7)
58
DependencyProperty.Register("Command", typeof(ICommand), typeof(
InputBinding
), new UIPropertyMetadata(null, new PropertyChangedCallback(OnCommandPropertyChanged)));
88
DependencyProperty.Register("CommandParameter", typeof(object), typeof(
InputBinding
));
109
DependencyProperty.Register("CommandTarget", typeof(IInputElement), typeof(
InputBinding
));
174
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
183
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
192
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
201
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
System\Windows\Input\Command\InputBindingCollection.cs (30)
89
return this.Contains(key as
InputBinding
);
99
InputBinding
inputBinding = value as
InputBinding
;
110
this.Insert(index, value as
InputBinding
);
119
this.Add(inputBinding as
InputBinding
);
129
this.Remove(inputBinding as
InputBinding
);
143
InputBinding
inputBinding = value as
InputBinding
;
155
public
InputBinding
this[int index]
172
InputBinding
oldInputBinding = null;
195
public int Add(
InputBinding
inputBinding)
200
_innerBindingList = new System.Collections.Generic.List<
InputBinding
>(1);
231
public int IndexOf(
InputBinding
value)
249
_innerBindingList = new System.Collections.Generic.List<
InputBinding
>(collection.Count);
254
InputBinding
inputBinding = collectionEnum.Current as
InputBinding
;
273
public void Insert(int index,
InputBinding
inputBinding)
291
public void Remove(
InputBinding
inputBinding)
295
if (_innerBindingList.Remove(inputBinding as
InputBinding
))
310
InputBinding
oldInputBinding = null;
360
List<
InputBinding
> oldInputBindings = new List<
InputBinding
>(_innerBindingList);
363
foreach (
InputBinding
inputBinding in oldInputBindings)
380
System.Collections.Generic.List<
InputBinding
> list = new System.Collections.Generic.List<
InputBinding
>(0);
398
public bool Contains(
InputBinding
key)
413
public void CopyTo(
InputBinding
[] inputBindings, int index)
421
internal
InputBinding
FindMatch(object targetElement, InputEventArgs inputEventArgs)
425
InputBinding
inputBinding = this[i];
453
private List<
InputBinding
> _innerBindingList;
PresentationFramework (9)
System\Windows\Controls\DocumentViewer.cs (3)
1638
InputBinding
zoom100InputBinding =
1650
InputBinding
wholePageInputBinding =
1662
InputBinding
twoPagesInputBinding =
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
387
case 293: t = () => typeof(
InputBinding
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7921
Type type = typeof(System.Windows.Input.
InputBinding
);
7922
DependencyProperty dp = System.Windows.Input.
InputBinding
.CommandProperty;
7924
this.GetXamlType(typeof(System.Windows.Input.
InputBinding
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5916
typeof(System.Windows.Input.
InputBinding
),
System\Windows\Markup\KnownTypes.cs (1)
5841
case KnownElements.InputBinding: t = typeof(System.Windows.Input.
InputBinding
); break;