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. Image for the cookie policy date

Style node update from another thread

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


1 Reply

RT Ramya Thirugnanam Syncfusion Team 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



Loader.
Live Chat Icon For mobile
Up arrow icon