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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Style node update from another thread

Thread ID:





102535 Feb 7,2012 01:19 PM UTC Feb 14,2012 03:40 PM UTC WPF 1
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);

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

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.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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