6.9 KiB
GroupingNode Class
Namespace: Nodify
Assembly: Nodify
Inheritance: Object → DispatcherObject → DependencyObject → Visual → UIElement → FrameworkElement → Control → ContentControl → HeaderedContentControl → GroupingNode
References: GroupingMovementMode, ItemContainer, NodifyEditor, ResizeEventHandler
Defines a panel with a header that groups ItemContainers inside it and can be resized.
public class GroupingNode : HeaderedContentControl
Constructors
GroupingNode()
Initializes a new instance of the GroupingNode class.
public GroupingNode();
Fields
ContentControl
Gets the ContentControl control of this GroupingNode.
protected FrameworkElement ContentControl;
Field Value
ElementContent
protected const string ElementContent = "PART_Content";
Field Value
ElementHeader
protected const string ElementHeader = "PART_Header";
Field Value
ElementResizeThumb
protected const string ElementResizeThumb = "PART_ResizeThumb";
Field Value
GroupMovementBoxed
protected static object GroupMovementBoxed;
Field Value
HeaderControl
Gets the HeaderedContentControl.Header control of this GroupingNode.
protected FrameworkElement HeaderControl;
Field Value
ResizeThumb
Gets the FrameworkElement used to resize this GroupingNode.
protected FrameworkElement ResizeThumb;
Field Value
Properties
ActualSize
Gets or sets the actual size of this GroupingNode.
public Size ActualSize { get; set; }
Property Value
CanResize
Gets or sets a value that indicates whether this GroupingNode can be resized.
public bool CanResize { get; set; }
Property Value
Container
Gets the NodifyEditor that owns this GroupingNode.Container.
protected ItemContainer Container { get; set; }
Property Value
Editor
Gets the NodifyEditor that owns this GroupingNode.
protected NodifyEditor Editor { get; set; }
Property Value
HeaderBrush
Gets or sets the brush used for the background of the HeaderedContentControl.Header of this GroupingNode.
public Brush HeaderBrush { get; set; }
Property Value
MovementMode
Gets or sets the default movement mode which can be temporarily changed by holding the SwitchMovementModeModifierKey while dragging by the header.
public GroupingMovementMode MovementMode { get; set; }
Property Value
ResizeCompletedCommand
Invoked when the GroupingNode.ResizeCompleted event is not handled. Parameter is the ItemContainer.ActualSize of the container.
public ICommand ResizeCompletedCommand { get; set; }
Property Value
ResizeStartedCommand
Invoked when the GroupingNode.ResizeStarted event is not handled. Parameter is the ItemContainer.ActualSize of the container.
public ICommand ResizeStartedCommand { get; set; }
Property Value
Methods
OnApplyTemplate()
public override void OnApplyTemplate();
ToggleContentSelection()
Toggles the selection of nodes inside this group. If any contained nodes are selected, all will be unselected. If none are selected, all will be selected.
public void ToggleContentSelection();
Events
ResizeCompleted
Occurs when the node finished resizing.
public event ResizeEventHandler ResizeCompleted;
Event Type
ResizeStarted
Occurs when the node started resizing.
public event ResizeEventHandler ResizeStarted;
Event Type