-
-
Notifications
You must be signed in to change notification settings - Fork 344
Nodify_DecoratorsControl
Namespace: Nodify
Assembly: Nodify
Inheritance: Object → DispatcherObject → DependencyObject → Visual → UIElement → FrameworkElement → Control → ItemsControl → DecoratorsControl
Implements: IKeyboardNavigationLayer
References: DecoratorContainer, IKeyboardFocusTarget<DecoratorContainer>, IKeyboardFocusTarget<UIElement>, KeyboardNavigationLayerId, NodifyEditor
An ItemsControl that works with DecoratorContainers.
public class DecoratorsControl : ItemsControl, IKeyboardNavigationLayer public DecoratorsControl(); Gets the NodifyEditor that owns this DecoratorsControl.
public NodifyEditor Editor { get; set; } Property Value
public virtual KeyboardNavigationLayerId Id { get; set; } Property Value
public virtual IKeyboardFocusTarget<UIElement> LastFocusedElement { get; set; } Property Value
IKeyboardFocusTarget<UIElement>
protected virtual DecoratorContainer FindNextFocusTarget(DecoratorContainer currentContainer, TraversalRequest request); Parameters
currentContainer DecoratorContainer
request TraversalRequest
Returns
protected override DependencyObject GetContainerForItemOverride(); Returns
protected override bool IsItemItsOwnContainerOverride(object item); Parameters
item Object
Returns
public override void OnApplyTemplate(); protected virtual void OnElementFocused(IKeyboardFocusTarget<DecoratorContainer> target); Parameters
target IKeyboardFocusTarget<DecoratorContainer>
public virtual bool TryMoveFocus(TraversalRequest request); Parameters
request TraversalRequest
Returns
public virtual bool TryRestoreFocus(); Returns
| English | 简体中文 |
|---|
- Hierarchy and terminology
- Content layers
- Creating an editor
- Using a theme
- Minimal example
- Drawing a grid
- Moving the viewport
- Zooming
- Scrolling
- Selecting items
- Pushing items
- Snapping to grid
- Editor gestures
- Commands