Menu

The following tables list the members exposed by the KeyTrigger type.

Public Constructors

NameDescription
KeyTrigger Initializes a new instance of the EventTriggerBase`1 class.
Top

Public Fields

Public Properties (see also Protected Properties)

NameDescription
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

NameDescription
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)

NameDescription
ApplyAnimationClockOverloaded. (Inherited from Animatable)
Attach(Inherited from TriggerBase)
BeginAnimationOverloaded. (Inherited from Animatable)
CheckAccess(Inherited from DispatcherObject)
ClearValueOverloaded. (Inherited from DependencyObject)
Clone(Inherited from Animatable)
CloneCurrentValue(Inherited from Freezable)
CoerceValue(Inherited from DependencyObject)
Detach Detaches this instance from its associated object. (Inherited from TriggerBase)
EqualsOverloaded. (Inherited from DependencyObject)
FreezeOverloaded. (Inherited from Freezable)
GetAnimationBaseValue(Inherited from Animatable)
GetAsFrozen(Inherited from Freezable)
GetCurrentValueAsFrozen(Inherited from Freezable)
GetHashCode(Inherited from DependencyObject)
GetLocalValueEnumerator(Inherited from DependencyObject)
GetType(Inherited from Object)
GetValue(Inherited from DependencyObject)
InvalidateProperty(Inherited from DependencyObject)
ReadLocalValue(Inherited from DependencyObject)
ReferenceEquals(Inherited from Object)
SetCurrentValue(Inherited from DependencyObject)
SetValueOverloaded. (Inherited from DependencyObject)
ShouldSerializeStoredWeakReference(Inherited from Animatable)
ToString(Inherited from Object)
VerifyAccess(Inherited from DispatcherObject)
Top

Protected Methods

NameDescription
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)
FreezeOverloaded. (Inherited from Freezable)
FreezeCore(Inherited from Animatable)
GetAsFrozenCore(Inherited from Freezable)
GetCurrentValueAsFrozenCore(Inherited from Freezable)
GetEventNameOverridden. 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)
OnDetachingOverridden. Called when the trigger is being detached from its AssociatedObject, but before it has actually occurred.
OnEventOverridden. �
OnFreezablePropertyChangedOverloaded. (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

NameDescription
Changed(Inherited from Freezable)
PreviewInvoke Event handler for registering to PreviewInvoke. (Inherited from TriggerBase)
Top

Explicit Interface Implementations

NameDescription
System.Windows.Interactivity.IAttachedObject.AssociatedObject Gets the object to which the trigger is attached. (Inherited from TriggerBase)
Top

See Also