GroupingNode
GroupingNode Class
Section titled “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
Section titled “Constructors”GroupingNode()
Section titled “GroupingNode()”Initializes a new instance of the GroupingNode class.
public GroupingNode();
Fields
Section titled “Fields”ContentControl
Section titled “ContentControl”Gets the ContentControl control of this GroupingNode.
protected FrameworkElement ContentControl;
Field Value
ElementContent
Section titled “ElementContent”protected const string ElementContent = "PART_Content";
Field Value
ElementHeader
Section titled “ElementHeader”protected const string ElementHeader = "PART_Header";
Field Value
ElementResizeThumb
Section titled “ElementResizeThumb”protected const string ElementResizeThumb = "PART_ResizeThumb";
Field Value
GroupMovementBoxed
Section titled “GroupMovementBoxed”protected static object GroupMovementBoxed;
Field Value
HeaderControl
Section titled “HeaderControl”Gets the HeaderedContentControl.Header control of this GroupingNode.
protected FrameworkElement HeaderControl;
Field Value
ResizeThumb
Section titled “ResizeThumb”Gets the FrameworkElement used to resize this GroupingNode.
protected FrameworkElement ResizeThumb;
Field Value
Properties
Section titled “Properties”ActualSize
Section titled “ActualSize”Gets or sets the actual size of this GroupingNode.
public Size ActualSize { get; set; }
Property Value
CanResize
Section titled “CanResize”Gets or sets a value that indicates whether this GroupingNode can be resized.
public bool CanResize { get; set; }
Property Value
Container
Section titled “Container”Gets the NodifyEditor that owns this GroupingNode.Container.
protected ItemContainer Container { get; set; }
Property Value
Editor
Section titled “Editor”Gets the NodifyEditor that owns this GroupingNode.
protected NodifyEditor Editor { get; set; }
Property Value
HeaderBrush
Section titled “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
Section titled “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
Section titled “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
Section titled “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
Section titled “Methods”OnApplyTemplate()
Section titled “OnApplyTemplate()”public override void OnApplyTemplate();
ToggleContentSelection()
Section titled “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
Section titled “Events”ResizeCompleted
Section titled “ResizeCompleted”Occurs when the node finished resizing.
public event ResizeEventHandler ResizeCompleted;
Event Type
ResizeStarted
Section titled “ResizeStarted”Occurs when the node started resizing.
public event ResizeEventHandler ResizeStarted;
Event Type