Want to hide and show property grid for SelectedItem in listview
<UserControl xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
<ListView>
<!--here is list view-->
</ListView>
<xctk:PropertyGrid SelectedObject="{Binding Active}" Visibility="{Binding Active, Converter=NullToVisibilityConverter}" >
</xctk:PropertyGrid>
</UserControl>
So I need converter and use it in visibility property converter. Any help?
Then reference the NullVisibilityConverter in your XAML Resources.
To use the converter we can create one in the resources , and refer to it as a static resource in the binding statement.
and Converter is same as above
There is little more useful version allows to set default invisibility value:
Where ever in resources add:
And use it like there: