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.
Syncfusion Feedback

SymbolPaletteItem XamlWriter.Save

Thread ID:

Created:

Updated:

Platform:

Replies:

113910 Oct 16,2013 09:47 PM UTC Oct 22,2013 10:37 AM UTC WPF 2
loading
Tags: Diagram
Marc Rochon
Asked On October 16, 2013 09:47 PM UTC

I noticed in my performance profiler that my app is spending a lot (30%) of its time executing the above Save method in the OnMouseLefButtonDown of SymbolPaletteItem. I dragged a couple of items from the palette to the Canvas at the time. Is that the expected behavior?


Parthiban A [Syncfusion]
Replied On October 22, 2013 10:30 AM UTC

Hi Marc,

 

By default dragging SymbolPaletteItem from symbol palette will undergoes serialization and deserialization. It will take some time. This is our default behaviour. However you can improve performance by use our virtual method CloneContent to return any object other than serialization process by internally. This method will avoid serialization and deserialization process by creating new object as you desired.

 

We had created sample in which we override that method to return new button object. It will considerably increase the performance. For more information please refer the attached sample.

 

Please let us know if you require further assist on this.

 

Regards,

Parthiban A.


Parthiban A [Syncfusion]
Replied On October 22, 2013 10:37 AM UTC

Hi Marc,

Kinldy find the sample from this attachment.

Regards,
Parthiban A.


Grouping_4aec2dfe.zip

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.

Warning Icon 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.Close Icon

;