<GroupBox Header="{Binding Path=FilterGroupName}"
Height ="Auto"
IsEnabled="{Binding IsSelected}"
IsVisible="{Binding Selected}" />
I get an error message saying that the visibility is readonly, in this case how to toggle the visibility?
You have to bind to the
Visibilityproperty to change the visibility of a control.In your case the variable that you bind to is a bool, so you need a converter that changes the bool to a
Visibilitytype variable