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:

Created:

Updated:

Platform:

Replies:

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

Hello,

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;
treeTech.Items.Add(node);

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,

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TreeViewDemo880590848.zip

Let us know if you have any other queries.

Thanks,
Karthikeyan



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.

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.

;