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

TreeViewAdv items style design

Thread ID:





101113 Sep 27,2011 07:05 AM UTC Oct 21,2011 11:30 AM UTC WPF 1
Tags: Tools
Administrator [Syncfusion]
Asked On September 27, 2011 07:05 AM UTC


I can't seem to be able to change style properties like foreground and background of inner TreeViewItemAdv inside the TreeViewAdv.

AllowMultiSelect="False" AllowDragDrop="True" ShowRootLines="True" AnimationType="Slide">

I'm adding items problematically:

node = new TreeViewItemAdv();
node.Header = "header";
node.Tag = "tagid";
node.Foreground = Brushes.DarkGreen;
node.IsExpanded = true;

only the root level item style is editable - lower levels ignore the style change.

Karthikeyan L [Syncfusion]
Replied On October 21, 2011 11:30 AM UTC

Hi Assaf,

By setting Foreground for TreeViewAdv will apply Foreground automatically for its sub nodes.

We have attached a simple sample for your reference,


Let us know if you have any other queries.



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

This page will automatically be redirected to the 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