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

Style node update from another thread

Thread ID:

Created:

Updated:

Platform:

Replies:

102535 Feb 7,2012 01:19 PM UTC Feb 14,2012 03:40 PM UTC WPF 1
loading
Tags: Diagram
Domenico Mozzone
Asked On February 7, 2012 01:19 PM UTC

Good Morning,
I'm using version 9.404.0.62.

I have a diagram with nodes and a separate thread (not the window thread) updates nodes style with following code (node is the node to update)

System.Windows.Style s = new System.Windows.Style();
Setter cSetter = new Setter(System.Windows.Shapes.Path.FillProperty, Brushes.LightGray);
s.Setters.Add(cSetter);

Setter fSetter = new Setter(System.Windows.Shapes.Path.StretchProperty, Stretch.Fill);
s.Setters.Add(fSetter);

node.CustomPathStyle = s;

the same code used in the Window thread works.

I tried without results to call UpdateLayout() method of Hosting Vire and diagram.

Can you help me?

Thank you

Domenico Mozzone
Setteidea srl


Ramya Thirugnanam [Syncfusion]
Replied On February 14, 2012 03:40 PM UTC

Hi Domenico,
With Regards to Style node update from another thread, Please provide us a simple sample to represent your scenario.so that, we would investigate further on this and update you with the proper solution.
Please let us know if you have any concerns.
Regards,
Ramya



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

;