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.

TreeViewAdv items style design

Thread ID:





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


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 07:30 AM

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.

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.