2 types derived from InputBinding
PresentationCore (2)
System\Windows\Input\Command\KeyBinding.cs (1)
32
public class KeyBinding :
InputBinding
System\Windows\Input\Command\MouseBinding.cs (1)
34
public class MouseBinding :
InputBinding
18 instantiations of InputBinding
PresentationCore (1)
System\Windows\Input\Command\InputBinding.cs (1)
169
return new
InputBinding
();
PresentationFramework (16)
MS\Internal\Commands\CommandHelpers.cs (1)
114
CommandManager.RegisterClassInputBinding(controlType, new
InputBinding
(command, inputGestures[i]));
System\Windows\Controls\DataGrid.cs (2)
60
CommandManager.RegisterClassInputBinding(ownerType, new
InputBinding
(BeginEditCommand, new KeyGesture(Key.F2)));
65
CommandManager.RegisterClassInputBinding(ownerType, new
InputBinding
(CancelEditCommand, new KeyGesture(Key.Escape)));
System\Windows\Controls\DocumentViewer.cs (3)
1705
new
InputBinding
(NavigationCommands.Zoom,
1715
new
InputBinding
(DocumentViewer.FitToMaxPagesAcrossCommand,
1725
new
InputBinding
(DocumentViewer.FitToMaxPagesAcrossCommand,
System\Windows\Controls\SinglePageViewer.cs (10)
1273
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.PreviousPage, new KeyGesture(Key.Left)));
1274
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.PreviousPage, new KeyGesture(Key.Up)));
1275
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.PreviousPage, new KeyGesture(Key.PageUp)));
1276
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.NextPage, new KeyGesture(Key.Right)));
1277
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.NextPage, new KeyGesture(Key.Down)));
1278
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.NextPage, new KeyGesture(Key.PageDown)));
1279
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.FirstPage, new KeyGesture(Key.Home)));
1280
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.FirstPage, new KeyGesture(Key.Home, ModifierKeys.Control)));
1281
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.LastPage, new KeyGesture(Key.End)));
1282
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new
InputBinding
(NavigationCommands.LastPage, new KeyGesture(Key.End, ModifierKeys.Control)));
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2142
new
InputBinding
(command, inputGesture));
49 references to InputBinding
PresentationCore (40)
System\Windows\Input\Command\CommandManager.cs (3)
193
public static void RegisterClassInputBinding(Type type,
InputBinding
inputBinding)
315
InputBinding
inputBinding = localInputBindings.FindMatch(targetElement, inputEventArgs);
335
InputBinding
inputBinding = classInputBindings.FindMatch(targetElement, inputEventArgs);
System\Windows\Input\Command\InputBinding.cs (7)
62
DependencyProperty.Register("Command", typeof(ICommand), typeof(
InputBinding
), new UIPropertyMetadata(null, new PropertyChangedCallback(OnCommandPropertyChanged)));
92
DependencyProperty.Register("CommandParameter", typeof(object), typeof(
InputBinding
));
113
DependencyProperty.Register("CommandTarget", typeof(IInputElement), typeof(
InputBinding
));
178
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
187
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
196
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
205
_gesture = ((
InputBinding
)sourceFreezable).Gesture;
System\Windows\Input\Command\InputBindingCollection.cs (30)
104
return this.Contains(key as
InputBinding
);
114
InputBinding
inputBinding = value as
InputBinding
;
125
this.Insert(index, value as
InputBinding
);
134
this.Add(inputBinding as
InputBinding
);
144
this.Remove(inputBinding as
InputBinding
);
158
InputBinding
inputBinding = value as
InputBinding
;
170
public
InputBinding
this[int index]
196
InputBinding
oldInputBinding = null;
219
public int Add(
InputBinding
inputBinding)
224
_innerBindingList = new System.Collections.Generic.List<
InputBinding
>(1);
255
public int IndexOf(
InputBinding
value)
273
_innerBindingList = new System.Collections.Generic.List<
InputBinding
>(collection.Count);
278
InputBinding
inputBinding = collectionEnum.Current as
InputBinding
;
297
public void Insert(int index,
InputBinding
inputBinding)
315
public void Remove(
InputBinding
inputBinding)
319
if (_innerBindingList.Remove(inputBinding as
InputBinding
))
334
InputBinding
oldInputBinding = null;
384
List<
InputBinding
> oldInputBindings = new List<
InputBinding
>(_innerBindingList);
387
foreach (
InputBinding
inputBinding in oldInputBindings)
404
System.Collections.Generic.List<
InputBinding
> list = new System.Collections.Generic.List<
InputBinding
>(0);
422
public bool Contains(
InputBinding
key)
437
public void CopyTo(
InputBinding
[] inputBindings, int index)
448
internal
InputBinding
FindMatch(object targetElement, InputEventArgs inputEventArgs)
452
InputBinding
inputBinding = this[i];
480
private List<
InputBinding
> _innerBindingList;
PresentationFramework (9)
System\Windows\Controls\DocumentViewer.cs (3)
1704
InputBinding
zoom100InputBinding =
1714
InputBinding
wholePageInputBinding =
1724
InputBinding
twoPagesInputBinding =
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
389
case 293: t = () => typeof(
InputBinding
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7349
Type type = typeof(System.Windows.Input.
InputBinding
);
7350
DependencyProperty dp = System.Windows.Input.
InputBinding
.CommandProperty;
7352
this.GetXamlType(typeof(System.Windows.Input.
InputBinding
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5428
typeof(System.Windows.Input.
InputBinding
),
System\Windows\Markup\KnownTypes.cs (1)
5847
case KnownElements.InputBinding: t = typeof(System.Windows.Input.
InputBinding
); break;