Interactivity / IKeyboardNavigationLayer
IKeyboardNavigationLayer Interface
Section titled “IKeyboardNavigationLayer Interface”Namespace: Nodify.Interactivity
Assembly: Nodify
Derived: ConnectionsMultiSelector, NodifyEditor, DecoratorsControl
References: IKeyboardFocusTarget<UIElement>, IKeyboardNavigationLayerGroup, KeyboardNavigationLayerId, NodifyEditor
Represents a layer of keyboard navigation that can handle focus movement and restoration.
public interface IKeyboardNavigationLayer
Properties
Section titled “Properties”Gets the unique identifier for this keyboard navigation layer.
public virtual KeyboardNavigationLayerId Id { get; set; }
Property Value
LastFocusedElement
Section titled “LastFocusedElement”Gets the last focused element within this layer, if any.
public virtual IKeyboardFocusTarget<UIElement> LastFocusedElement { get; set; }
Property Value
IKeyboardFocusTarget<UIElement>
Methods
Section titled “Methods”OnActivated()
Section titled “OnActivated()”Called when the layer is activated, allowing for any necessary setup or focus management.
public virtual void OnActivated();
OnDeactivated()
Section titled “OnDeactivated()”Called when the layer is deactivated, allowing for any necessary cleanup or focus management.
public virtual void OnDeactivated();
TryMoveFocus(TraversalRequest)
Section titled “TryMoveFocus(TraversalRequest)”Attempts to move focus within this layer based on the provided traversal request.
public virtual bool TryMoveFocus(TraversalRequest request);
Parameters
request
TraversalRequest: The traversal request.
Returns
Boolean: Returns true if the focus was moved, false otherwise.
TryRestoreFocus()
Section titled “TryRestoreFocus()”Attempts to restore focus to the last focused element within this layer.
public virtual bool TryRestoreFocus();
Returns
Boolean: Returns true if the focus was restored, false otherwise.