-
-
Notifications
You must be signed in to change notification settings - Fork 270
Nodify_Interactivity_IKeyboardNavigationLayer
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
Gets the unique identifier for this keyboard navigation layer.
public virtual KeyboardNavigationLayerId Id { get; set; }
Property Value
Gets the last focused element within this layer, if any.
public virtual IKeyboardFocusTarget<UIElement> LastFocusedElement { get; set; }
Property Value
IKeyboardFocusTarget<UIElement>
Called when the layer is activated, allowing for any necessary setup or focus management.
public virtual void OnActivated();
Called when the layer is deactivated, allowing for any necessary cleanup or focus management.
public virtual void OnDeactivated();
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.
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.