In Diagram Control, we don’t have a support to serialize the hosted control in Syncfusion.Windows.Forms.Diagram.ControlNode when the hosted control is non-serialized control. However, we can customize the Diagram’s Syncfusion.Windows.Forms.Diagram.ControlNode class and override the SerializeNode() as well as DeserializeNode() methods to achieve the requirement. The overridden methods contain HashTable collection as a parameter and it is used to add the Hosted control’s needed objects (i.e. serializable objects alone) into that collection while serializing/deserializing the customized control node.
The following steps contains how to serializing/deserializing the hosted control if the hosted control is non-serializable object.
The following code example shows creating the custom controlNode
While Deserializing, we need to initialize the hosted control and reassign the deserialized objects into the initialized control’s objects.
The following code example shows how to deserializing the hosted control’s objects and reassign to the hosted control.
While deserializing, we need to initialize the hosted control and reassign the serialized objects into the initialized hosted control.
The following code example shows how to deserializing the hosted control’s objects.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.