Search
Diagram.DefaultControlType Property
See Also
 






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

 Syntax

C#  Copy Code

public Type DefaultControlType { get; set; }

Visual Basic  Copy Code

Public Property DefaultControlType As Type

 Property Value

A reference to the Type that specifies a class of WinUI 3 controls to create.

 Remarks

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.

 See Also