In This Article

KeyTipInvokedEventArgs Class

Provides event arguments for when the end user invokes a key tip by typing its text.

public class KeyTipInvokedEventArgs : RoutedEventArgs
Inheritance:
object EventArgs RoutedEventArgs object

Constructors

KeyTipInvokedEventArgs()

Initializes a new instance of the KeyTipInvokedEventArgs class.

public KeyTipInvokedEventArgs()

Properties

CanRestoreFocus

Gets or sets whether to restore keyboard focus to the main focus scope after the event.

public bool CanRestoreFocus { get; set; }

Property Value

bool:

true if keyboard focus should be restored to the main focus scope after the event; otherwise, false. The default value is false.

Remarks

This property is only used when not transitioning to a new TargetScope, since it is assumed key tip mode is completed when there is no new scope specified.

PopScopeAction

Gets or sets the action to execute if the TargetScope is eventually popped via an 'Esc' keypress.

public Action PopScopeAction { get; set; }

Property Value

Action:

The action to execute if the TargetScope is eventually popped via an 'Esc' keypress.

Remarks

This property can optionally be set when TargetScope is set.

TargetScope

Gets or sets the target key tip scope, if any, that should become active.

public UIElement TargetScope { get; set; }

Property Value

UIElement:

The target key tip scope, if any, that should become active.

Remarks

This property should only be filled in when a new key tip scope should be entered. If a control such as a button processes the key tip invoke event as a click and key tip mode should be stopped, leave this property as null.

Inherited Members