Custom classes can be defined in the Window.Resoures of the XAML page. This can be done with the following code snippets.
[XAML]
<Window.Resources>
<local:BoolToVisibilityConverter x:Key="BoolToVisConverter"/>
</Window.Resources>
<Grid>
<Button Visibility="{Binding IsVisible,Converter={StaticResource BoolToVisConverter}}"/>
</Grid>
Share with