Lets you save the attributes of controls hosted inside ControlNodes.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
SyntaxC#
Copy Code
|
|---|
public event EventHandler<ControlNodeEventArgs> SerializeControl |
Visual Basic
Copy Code
|
|---|
Public Event SerializeControl As EventHandler(Of ControlNodeEventArgs) |
Event DataSerializeControl event handlers receive an argument of type ControlNodeEventArgs.
RemarksBy 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.
ExampleC#
Copy Code
|
|---|
private void OnDiagramSerializeControl(object sender, ControlNodeEventArgs e) |
See Also