Gets or sets the type of the controls that will be hosted by default in newly create ControlNode objects.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C#
![]() |
---|
public Type DefaultControlType { get; set; } |
Visual Basic
![]() |
---|
Public Property DefaultControlType As Type |
A reference to the Type that specifies a class of WinUI 3 controls to create.
DefaultControlType must be subclass of FrameworkElement. In addition, the type must provide a constructor that takes no parameters. When a control-hosting node is created, the control's constructor is invoked and the newly-created instance is made a child of the Diagram control. ControlNode nodes can be created either interactively or via method calls. Reference to the hosted FrameworkElement-derived object can be get via the host's Control property.
MindFusion.Diagramming for WinUI Programmer's Guide | © 2024 MindFusion |