This documentation is archived and is not being maintained.
InputGestureCollection Class
Visual Studio 2010
Represents an ordered collection of InputGesture objects.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
The InputGestureCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | InputGestureCollection() | Initializes a new instance of the InputGestureCollection class. |
![]() | InputGestureCollection(IList) | Initializes a new instance of the InputGestureCollection class using the elements in the specified IList. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of InputGesture items in this InputGestureCollection. |
![]() | IsFixedSize | Gets a value that indicates whether this InputGestureCollection has a fixed size. |
![]() | IsReadOnly | Gets a value that indicates whether this InputGestureCollection is read-only. The default value is false. |
![]() | IsSynchronized | Gets a value that indicates whether this InputGestureCollection is synchronized (thread safe). |
![]() | Item | Gets or set the InputGesture at the specified index. |
![]() | SyncRoot | Gets an object that can be used to synchronize access to this InputGestureCollection. |
| Name | Description | |
|---|---|---|
![]() | Add | Adds the specified InputGesture to this InputGestureCollection. |
![]() | AddRange | Adds the elements of the specified ICollection to the end of this InputGestureCollection. |
![]() | Clear | Removes all elements from the InputGestureCollection. |
![]() | Contains | Determines whether the specified InputGesture is in the collection. |
![]() | CopyTo | Copies all of the items in the InputGestureCollection to the specified one-dimensional array, starting at the specified index of the target array. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Gets an enumerator that iterates through this InputGestureCollection. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf | Searches for the first occurrence of the specified InputGesture in this InputGestureCollection. |
![]() | Insert | Inserts the specified InputGesture into this InputGestureCollection at the specified index. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove | Removes the first occurrence of the specified InputGesture from this InputGestureCollection. |
![]() | RemoveAt | Removes the specified InputGesture at the specified index of this InputGestureCollection. |
![]() | Seal | Sets this InputGestureCollection to read-only. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection::CopyTo | Infrastructure. For a description of this member, see ICollection::CopyTo. |
![]() ![]() | IList::Add | Infrastructure. For a description of this member, see IList::Add. |
![]() ![]() | IList::Contains | Infrastructure. For a description of this member, see IList::Contains. |
![]() ![]() | IList::IndexOf | Infrastructure. For a description of this member, see IList::IndexOf. |
![]() ![]() | IList::Insert | Infrastructure. For a description of this member, see IList::Insert. |
![]() ![]() | IList::Item | Infrastructure. For a description of this member, see IList::Item. |
![]() ![]() | IList::Remove | Infrastructure. For a description of this member, see IList::Remove. |
The following example creates a KeyGesture and adds it to the InputGestureCollection of a RoutedCommand.
<Window.InputBindings> <KeyBinding Key="B" Modifiers="Control" Command="ApplicationCommands.Open" /> </Window.InputBindings>
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:

