KeyTrigger Members
A Trigger that is triggered by a keyboard event. If the target Key and Modifiers are detected, it fires.
The following tables list the members exposed by the KeyTrigger type.
Public Constructors
Name | Description | |
---|---|---|
KeyTrigger | Initializes a new instance of the EventTriggerBase`1 class. |
Top
Public Fields
Name | Description | |
---|---|---|
ActionsProperty | (Inherited from TriggerBase) | |
ActiveOnFocusProperty | ||
FiredOnProperty | ||
KeyProperty | ||
ModifiersProperty | ||
SourceNameProperty | (Inherited from EventTriggerBase) | |
SourceObjectProperty | (Inherited from EventTriggerBase) |
Top
Public Properties
(see also Protected Properties)
Name | Description | |
---|---|---|
Actions | Gets the actions associated with this trigger. (Inherited from TriggerBase) | |
ActiveOnFocus | If true, the Trigger only listens to its trigger Source object, which means that element must have focus for the trigger to fire. If false, the Trigger listens at the root, so any unhandled KeyDown/Up messages will be caught. | |
CanFreeze | (Inherited from Freezable) | |
DependencyObjectType | (Inherited from DependencyObject) | |
Dispatcher | (Inherited from DispatcherObject) | |
FiredOn | Determines whether or not to listen to the KeyDown or KeyUp event. | |
HasAnimatedProperties | (Inherited from Animatable) | |
IsFrozen | (Inherited from Freezable) | |
IsSealed | (Inherited from DependencyObject) | |
Key | The key that must be pressed for the trigger to fire. | |
Modifiers | The modifiers that must be active for the trigger to fire (the default is no modifiers pressed). | |
Source | Gets the resolved source. If is not set or cannot be resolved, defaults to AssociatedObject. (Inherited from EventTriggerBase) | |
SourceName | Gets or sets the name of the element this EventTriggerBase listens for as a source. If the name is not set or cannot be resolved, the AssociatedObject will be used. This is a dependency property. (Inherited from EventTriggerBase) | |
SourceObject | Gets or sets the target object. If TargetObject is not set, the target will look for the object specified by TargetName. If an element referred to by TargetName cannot be found, the target will default to the AssociatedObject. This is a dependency property. (Inherited from EventTriggerBase) |
Top
Protected Properties
Name | Description | |
---|---|---|
AssociatedObject | Gets the object to which the trigger is attached. (Inherited from TriggerBase) | |
AssociatedObjectTypeConstraint | Gets the type constraint of the associated object. (Inherited from EventTriggerBase) | |
SourceTypeConstraint | Gets the source type constraint. (Inherited from EventTriggerBase) |
Top
Public Methods
(see also Protected Methods)
Top
Protected Methods
Name | Description | |
---|---|---|
CloneCore | (Inherited from Freezable) | |
CloneCurrentValueCore | (Inherited from Freezable) | |
CreateInstance | (Inherited from Freezable) | |
CreateInstanceCore | Creates a new instance of the TriggerBase derived class. (Inherited from TriggerBase) | |
Finalize | (Inherited from Object) | |
Freeze | Overloaded. (Inherited from Freezable) | |
FreezeCore | (Inherited from Animatable) | |
GetAsFrozenCore | (Inherited from Freezable) | |
GetCurrentValueAsFrozenCore | (Inherited from Freezable) | |
GetEventName | Overridden. Specifies the name of the Event this EventTriggerBase is listening for. | |
InvokeActions | (Inherited from TriggerBase) | |
MemberwiseClone | (Inherited from Object) | |
OnAttached | Called after the trigger is attached to an AssociatedObject. (Inherited from EventTriggerBase) | |
OnChanged | (Inherited from Freezable) | |
OnDetaching | Overridden. Called when the trigger is being detached from its AssociatedObject, but before it has actually occurred. | |
OnEvent | Overridden. | |
OnFreezablePropertyChanged | Overloaded. (Inherited from Freezable) | |
OnPropertyChanged | (Inherited from Freezable) | |
OnSourceChanged | Called when the source property changes. (Inherited from EventTriggerBase) | |
ReadPreamble | (Inherited from Freezable) | |
ShouldSerializeProperty | (Inherited from DependencyObject) | |
WritePostscript | (Inherited from Freezable) | |
WritePreamble | (Inherited from Freezable) |
Top
Public Events
Name | Description | |
---|---|---|
Changed | (Inherited from Freezable) | |
PreviewInvoke | Event handler for registering to PreviewInvoke. (Inherited from TriggerBase) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
System.Windows.Interactivity.IAttachedObject.AssociatedObject | Gets the object to which the trigger is attached. (Inherited from TriggerBase) |
Top
See Also
Reference
KeyTrigger Class
Microsoft.Expression.Interactivity.Input Namespace