We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Need help in saving line connectors

Thread ID:

Created:

Updated:

Platform:

Replies:

102379 Jan 25,2012 08:52 AM Mar 18,2018 04:08 AM WPF 5
loading
Tags: Diagram
nadeem
Asked On January 25, 2012 08:52 AM

Hi,
I am writing my own logic to save the line connectors in xml file.
I have attach snap shot of line connector.My aim is to save those properties of line connector in xml file which help me to redraw the exact shape of line when I reload the xml file.
Looking for a positive response from your side.




LineConnector_d993cb25.rar

Ramya Thirugnanam [Syncfusion]
Replied On January 30, 2012 03:02 AM

Hi Nadeem,

With regards to save line connectors, we have provided a support to save and Load the Diagram using save and load method of the DiagramControl. we have created a simple sample to represent your requirement. Please refer to the sample and video from the attachment.

For more details about Save and Load the Diagram, please refer to our online help documentation.
link: http://help.syncfusion.com/ug_94/User%20Interface/WPF/Diagram/Documents/481savediagrampage.htm

Please let us know if you have any concerns.
Regards,
Ramya




saveandLoad_b5558c00.zip

nadeem
Replied On January 31, 2012 01:00 AM

Below is the previous conversation.The solution send to me did'nt serve my purpose.I said i need to build my custom XML file that contain connectors tag like .I don't want to use SAVE() method because it save all those thing that i did'nt need it.Kindly guide me those properties of LineConnectors that help to to redraw the exact shape of line(Line in any shape bend or straight).
Looking for a positive response from your side.



nadeem at 1/25/2012 8:52:36 AM
Hi,
I am writing my own logic to save the line connectors in xml file.
I have attach snap shot of line connector.My aim is to save those properties of line connector in xml file which help me to redraw the exact shape of line when I reload the xml file.
Looking for a positive response from your side.




LineConnector_d993cb25.rar
Ramya Thirugnanam[Syncfusion] at 1/30/2012 3:02:32 AM
Hi Nadeem,

With regards to save line connectors, we have provided a support to save and Load the Diagram using save and load method of the DiagramControl. we have created a simple sample to represent your requirement. Please refer to the sample and video from the attachment.

For more details about Save and Load the Diagram, please refer to our online help documentation.
link: http://help.syncfusion.com/ug_94/User%20Interface/WPF/Diagram/Documents/481savediagrampage.htm

Please let us know if you have any concerns.
Regards,
Ramya




Ramya Thirugnanam [Syncfusion]
Replied On January 31, 2012 06:15 AM

Hi Nadeem,

Sorry for the inconvenience caused. Please ignore the previous update and consider the new one.

With regards to save line connectors, We have created a simple sample to save the LineConnector using XamlWriter. Please refer to the sample from the attachment.

sample Details:
In that sample, the click made in the button(named as ”save”) serialize the LineConnector(selected Lineconnector) and save it into xaml file.

Please let us know if you have any concerns.
Regards,
Ramya




CustomLineConnector_d4e768f8.zip

Ramya Thirugnanam [Syncfusion]
Replied On February 1, 2012 10:49 PM

Hi Nadeem,

In our previous update, we have used the XamlWriter method to serialize(save) the LineConnector. Now, we have created a sample to represent the save and Load the LineConnector into Diagram. Please refer to the sample and video from the Attachment.

Sample Details:
In that sample, We have used the Custom class(named as “Custom Line”) for Serialization which holds the Details of the LineConnector(“selected LineConnector”). While Loading ,We have created similar LineConnector using desterilized Data. For Retrieving the IntermediatePoints of the LineConnector, we have used the Custom Class called(named as “ContentStatePersistence”).For getting the StartPointPosition and EndPointPosition of LineConnector ,we have used the ConnectorPathGeometry of the LineConnector.

Please let us know if you have any concerns.
Regards,
Ramya




CustomLineConnector_e00ebe2a.zip

Vijay
Replied On March 18, 2018 04:08 AM

Below is the previous conversation.The solution send to me did'nt serve my purpose.I said i need to build my custom XML file that contain connectors tag like .I don't want to use SAVE() method because it save all those thing that i did'nt need it.Kindly guide me those properties of LineConnectors that help to to redraw the exact shape of line(Line in any shape bend or straight).
Looking for a positive response from your side.



nadeem at 1/25/2012 8:52:36 AM
Hi,
I am writing my own logic to save the line connectors in xml file.
I have attach snap shot of line connector.My aim is to save those properties of line connector in xml file which help me to redraw the exact shape of line when I reload the xml file.
Looking for a positive response from your side.




LineConnector_d993cb25.rar
Ramya Thirugnanam[Syncfusion] at 1/30/2012 3:02:32 AM
Hi Nadeem,

With regards to save line connectors, we have provided a support to save and Load the Diagram using save and load method of the DiagramControl. we have created a simple sample to represent your requirement. Please refer to the sample and video from the attachment.

For more details about Save and Load the Diagram, please refer to our online help documentation.
link: http://help.syncfusion.com/ug_94/User%20Interface/WPF/Diagram/Documents/481savediagrampage.htm

Please let us know if you have any concerns.
Regards,
Ramya




hi

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;