Share via


KeyTrigger.ActiveOnFocus Property

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.

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

Syntax

'Declaration
Public Property ActiveOnFocus As Boolean
'Usage
Dim instance As KeyTrigger
Dim value As Boolean

value = instance.ActiveOnFocus

instance.ActiveOnFocus = value
public bool ActiveOnFocus { get; set; }
public:
property bool ActiveOnFocus {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_ActiveOnFocus ()

/** @property */
public void set_ActiveOnFocus (boolean value)
public function get ActiveOnFocus () : boolean

public function set ActiveOnFocus (value : boolean)

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 Class
KeyTrigger Members
Microsoft.Expression.Interactivity.Input Namespace