Lets you save the attributes of controls hosted inside ControlNodes.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public event EventHandler<ControlNodeEventArgs> SerializeControl |
Visual Basic Copy Code |
---|
Public Event SerializeControl As EventHandler(Of ControlNodeEventArgs) |
SerializeControl event handlers receive an argument of type ControlNodeEventArgs.
By default the diagram component saves and loads hosted controls by means of the XamlWriter and XamlReader classes provided by the WPF framework. If they cannot serialize the content of nodes automatically, the SerializeControl and DeserializeControl events can be handled to implement custom serialization.
C# Copy Code |
---|
private void OnDiagramSerializeControl(object sender, ControlNodeEventArgs e) |
WpfDiagram Programmer's Guide | © 2024 MindFusion |