ControlNode is an adapter class that allows using any WPF control as a diagram node.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public class ControlNode : DiagramNode |
Visual Basic Copy Code |
---|
Public Class ControlNode |
ControlNode objects are nodes that can host any WPF UIElements, such as custom controls. The hosted element can be get or set using the Control property. When saving the parent diagram into a file, hosted elements are automatically serialized by means of the XamlWriter and XamlReader WPF classes. To implement custom serialization, handle the SerializeControl and DeserializeControl events.
The adapter node can either try to set its Bounds value as a size of the hosted element, or it can auto-size to the desired size of the element. This is specified via the SizeSyncMode property.
If the hosted control is interactive, you can specify that it should process mouse input instead of the Diagram control by setting MouseInputMode.
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
MindFusion.Diagramming.Wpf.DiagramItem
MindFusion.Diagramming.Wpf.DiagramNode
MindFusion.Diagramming.Wpf.ControlNode
WpfDiagram Programmer's Guide | © 2024 MindFusion |