Class Label
Label control. Focuses Target on pointer click or access key press (Alt + accessKey)
public class Label : ContentControl, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue
- Inheritance
-
Label
- Implements
- Inherited Members
- Extension Methods
Constructors
Label()
Initializes instance of Label control
public Label()
Fields
TargetProperty
Defines the Target Direct property
public static readonly StyledProperty<IInputElement?> TargetProperty
Field Value
Properties
Target
Label focus Target
[ResolveByName]
public IInputElement? Target { get; set; }
Property Value
Methods
OnAccessKey(RoutedEventArgs)
This method is used to execute the action on an effective IInputElement when a corresponding access key has been invoked. By default, the Focus() method is invoked with the NavigationMethod.Tab to indicate a visual focus adorner. Overwrite this method if other methods or additional functionality is needed when an item should receive the focus.
protected override void OnAccessKey(RoutedEventArgs e)
Parameters
e
RoutedEventArgsAccessKeyEventArgs are passed on to indicate if there are multiple matches or not.
OnCreateAutomationPeer()
Returns a new, type-specific AutomationPeer implementation for the control.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer
The type-specific AutomationPeer implementation.
OnPointerPressed(PointerPressedEventArgs)
Handler of PointerPressed event
protected override void OnPointerPressed(PointerPressedEventArgs e)
Parameters
e
PointerPressedEventArgsEvent Arguments