Skip to content

Nodify_GroupingNode

miroiu edited this page Dec 23, 2024 · 1 revision

GroupingNode Class

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  

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

FrameworkElement

ElementContent

protected const string ElementContent = "PART_Content";  

Field Value

String

ElementHeader

protected const string ElementHeader = "PART_Header";  

Field Value

String

ElementResizeThumb

protected const string ElementResizeThumb = "PART_ResizeThumb";  

Field Value

String

GroupMovementBoxed

protected static object GroupMovementBoxed;  

Field Value

Object

HeaderControl

Gets the HeaderedContentControl.Header control of this GroupingNode.

protected FrameworkElement HeaderControl;  

Field Value

FrameworkElement

ResizeThumb

Gets the FrameworkElement used to resize this GroupingNode.

protected FrameworkElement ResizeThumb;  

Field Value

FrameworkElement

Properties

ActualSize

Gets or sets the actual size of this GroupingNode.

public Size ActualSize { get; set; }  

Property Value

Size

CanResize

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

public bool CanResize { get; set; }  

Property Value

Boolean

Container

Gets the NodifyEditor that owns this GroupingNode.Container.

protected ItemContainer Container { get; set; }  

Property Value

ItemContainer

Editor

Gets the NodifyEditor that owns this GroupingNode.

protected NodifyEditor Editor { get; set; }  

Property Value

NodifyEditor

HeaderBrush

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

public Brush HeaderBrush { get; set; }  

Property Value

Brush

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

GroupingMovementMode

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

ICommand

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

ICommand

Methods

OnApplyTemplate()

public override void OnApplyTemplate();  

Events

ResizeCompleted

Occurs when the node finished resizing.

public event ResizeEventHandler ResizeCompleted;  

Event Type

ResizeEventHandler

ResizeStarted

Occurs when the node started resizing.

public event ResizeEventHandler ResizeStarted;  

Event Type

ResizeEventHandler

Clone this wiki locally