Skip to content
miroiu edited this page Dec 23, 2024 · 1 revision

StateNode Class

Namespace: Nodify

Assembly: Nodify

Inheritance: ObjectDispatcherObjectDependencyObjectVisualUIElementFrameworkElementControlConnectorStateNode

References: PendingConnection

Represents a control that acts as a Connector.

public class StateNode : Connector  

Constructors

StateNode()

public StateNode();  

Fields

ElementContent

protected const string ElementContent = "PART_Content";  

Field Value

String

Properties

Content

Gets or sets the data for the control's content.

public object Content { get; set; }  

Property Value

Object

ContentControl

Gets the StateNode.ContentControl control of this StateNode.

protected UIElement ContentControl { get; set; }  

Property Value

UIElement

ContentTemplate

Gets or sets the template used to display the content of the control's header.

public DataTemplate ContentTemplate { get; set; }  

Property Value

DataTemplate

CornerRadius

Gets or sets a value that represents the degree to which the corners of the StateNode are rounded.

public CornerRadius CornerRadius { get; set; }  

Property Value

CornerRadius

HighlightBrush

Gets or sets the brush used when the PendingConnection.IsOverElementProperty attached property is true for this StateNode.

public Brush HighlightBrush { get; set; }  

Property Value

Brush

Methods

OnApplyTemplate()

public override void OnApplyTemplate();  

OnMouseDown(MouseButtonEventArgs)

protected override void OnMouseDown(MouseButtonEventArgs e);  

Parameters

e MouseButtonEventArgs

OnMouseUp(MouseButtonEventArgs)

protected override void OnMouseUp(MouseButtonEventArgs e);  

Parameters

e MouseButtonEventArgs

Clone this wiki locally