DiagramNodeAdapter is an adapter class that enables using any UIElement -derived object as a diagram node.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public class DiagramNodeAdapter : DiagramNode |
Visual Basic Copy Code |
---|
Public Class DiagramNodeAdapter |
DiagramNodeAdapter objects are nodes that can host any WPF UIElements, such as custom controls. The hosted element can be get or set using the UIElement 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.DiagramNodeAdapter
WpfDiagram Programmer's Guide | © 2023 MindFusion |