Skip to content

GroupingNode

Namespace: Nodify

Assembly: Nodify

Inheritance: ObjectDispatcherObjectDependencyObjectVisualUIElementFrameworkElementControlContentControlHeaderedContentControlGroupingNode

References: GroupingMovementMode, ItemContainer, NodifyEditor, ResizeEventHandler

Defines a panel with a header that groups ItemContainers inside it and can be resized.

public class GroupingNode : HeaderedContentControl

Initializes a new instance of the GroupingNode class.

public GroupingNode();

Gets the ContentControl control of this GroupingNode.

protected FrameworkElement ContentControl;

Field Value

FrameworkElement

protected const string ElementContent = "PART_Content";

Field Value

String

protected const string ElementHeader = "PART_Header";

Field Value

String

protected const string ElementResizeThumb = "PART_ResizeThumb";

Field Value

String

protected static object GroupMovementBoxed;

Field Value

Object

Gets the HeaderedContentControl.Header control of this GroupingNode.

protected FrameworkElement HeaderControl;

Field Value

FrameworkElement

Gets the FrameworkElement used to resize this GroupingNode.

protected FrameworkElement ResizeThumb;

Field Value

FrameworkElement

Gets or sets the actual size of this GroupingNode.

public Size ActualSize { get; set; }

Property Value

Size

Gets or sets a value that indicates whether this GroupingNode can be resized.

public bool CanResize { get; set; }

Property Value

Boolean

Gets the NodifyEditor that owns this GroupingNode.Container.

protected ItemContainer Container { get; set; }

Property Value

ItemContainer

Gets the NodifyEditor that owns this GroupingNode.

protected NodifyEditor Editor { get; set; }

Property Value

NodifyEditor

Gets or sets the brush used for the background of the HeaderedContentControl.Header of this GroupingNode.

public Brush HeaderBrush { get; set; }

Property Value

Brush

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

GroupingMovementMode

Invoked when the GroupingNode.ResizeCompleted event is not handled. Parameter is the ItemContainer.ActualSize of the container.

public ICommand ResizeCompletedCommand { get; set; }

Property Value

ICommand

Invoked when the GroupingNode.ResizeStarted event is not handled. Parameter is the ItemContainer.ActualSize of the container.

public ICommand ResizeStartedCommand { get; set; }

Property Value

ICommand

public override void OnApplyTemplate();

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

Occurs when the node finished resizing.

public event ResizeEventHandler ResizeCompleted;

Event Type

ResizeEventHandler

Occurs when the node started resizing.

public event ResizeEventHandler ResizeStarted;

Event Type

ResizeEventHandler