Skip to content

Nodify_Interactivity_IKeyboardNavigationLayer

miroiu edited this page Jun 18, 2025 · 1 revision

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

Id

Gets the unique identifier for this keyboard navigation layer.

public virtual KeyboardNavigationLayerId Id { get; set; }  

Property Value

KeyboardNavigationLayerId

LastFocusedElement

Gets the last focused element within this layer, if any.

public virtual IKeyboardFocusTarget<UIElement> LastFocusedElement { get; set; }  

Property Value

IKeyboardFocusTarget<UIElement>

Methods

OnActivated()

Called when the layer is activated, allowing for any necessary setup or focus management.

public virtual void OnActivated();  

OnDeactivated()

Called when the layer is deactivated, allowing for any necessary cleanup or focus management.

public virtual void OnDeactivated();  

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()

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.

Clone this wiki locally