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

Controlling the visiblity of a TreeViewItemAdv

Thread ID:





90305 Sep 24,2009 01:22 PM UTC Sep 25,2009 02:11 PM UTC WPF 3
Tags: Tools
Anton De Gruchy
Asked On September 24, 2009 01:22 PM UTC

I have my data databound to a TreeViewItemAdv. I would like to control the visiblity of the tree node for filtering purposes. How do I do this via databinding?


Michael Matela
Replied On September 25, 2009 06:54 AM UTC

If you have a Model-View-ViewModel approach (see http://www.codeproject.com/KB/WPF/TreeViewWithViewModel.aspx for why this is best):

1) Have a property IsVisible on the ViewModel.
2) Bind the property to the TreeViewItemAdv:

Kind regards,
Daniel Rose
EXAPT Systemtechnik GmbH

Anton De Gruchy
Replied On September 25, 2009 12:35 PM UTC


I used the following XAML

but I get the following error.

Error 1 The Property Setter 'IsVisible' cannot be set because it does not have an accessible set accessor. Line 57 Position 29.

Venugopal M [Syncfusion]
Replied On September 25, 2009 02:11 PM UTC

Hi Anton,

Yes. IsVisible is read-only property. You can use Visibility Property with BooleanToVisibilityConverter converter.

For instance,

Hope this will solve your problem.

Thanks for your interest in Syncfusion products.



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