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

Changing selection color: HOWTO - Copying the default template

Hello,

I'd like to change the color of the selected node when selected from gray to something else. I didn't see any property to do this. I was going to just make a copy of the current template or style and then modify it. But I was unable to. When I try to copy the template by right clicking the SFTreeNavigator in the deign view and then selecting Make a Copy, I get a 'Copy Template Failed' error message.

How can I change this part of the control?

Thank You,
Joseph

1 Reply

SM Sugapriya Mariappan Syncfusion Team June 2, 2015 12:15 PM UTC

Hi Joseph,

Query: change the color of the selected node when selected from gray to something else

Please find the KB for your query from the following link
KB link: http://www.syncfusion.com/kb/2757/how-to-customize-the-style-of-winrt-sftreenavigator

We have prepared a sample with the code snippets in the above KB.

Please download the sample from below link
Sample link:SfTreeNavigator

In the sample, we have edited the SfTreeNavigatorItem Style to change the default control Background to pink, when the item gets selected.

Please let us know if you need any other assistance

Regards,
M.Sugapriya

Loader.
Live Chat Icon For mobile
Up arrow icon