Share via


KeyTrigger Class

A Trigger that is triggered by a keyboard event. If the target Key and Modifiers are detected, it fires.

Namespace: Microsoft.Expression.Interactivity.Input
Assembly: Microsoft.Expression.Interactions (in microsoft.expression.interactions.dll)

Syntax

'Declaration
Public Class KeyTrigger
    Inherits EventTriggerBase(Of UIElement)
'Usage
Dim instance As KeyTrigger
public class KeyTrigger : EventTriggerBase<UIElement>
public ref class KeyTrigger : public EventTriggerBase<UIElement^>
public class KeyTrigger extends EventTriggerBase<UIElement>
public class KeyTrigger extends EventTriggerBase<UIElement>

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Freezable
         System.Windows.Media.Animation.Animatable
           System.Windows.Interactivity.TriggerBase
             System.Windows.Interactivity.EventTriggerBase
               System.Windows.Interactivity.EventTriggerBase
                Microsoft.Expression.Interactivity.Input.KeyTrigger

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

KeyTrigger Members
Microsoft.Expression.Interactivity.Input Namespace