Gets or sets the FrameworkElement control that is associated with the ControlNode.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C#
![]() |
---|
public FrameworkElement Control { get; set; } |
Visual Basic
![]() |
---|
Public Property Control As FrameworkElement |
An instance of a any FrameworkElement-derived class.
A ControlNode drawn by the user has its Control initialized to an instance of the DefaultControlType type. At any time you can assign another control to this property.
The example below shows how to create a new ControlNode node and set its control:
C#
![]() |
---|
ControlNode host = new ControlNode(diagramView); host.Control = new ListView(); diagram.Nodes.Add(host); |
Visual Basic
![]() |
---|
Dim host As ControlNode = New ControlNode(DiagramView) host.Control = New ListView() Diagram.Nodes.Add(host) |
MindFusion.Diagramming for WinUI Programmer's Guide | © 2024 MindFusion |