Typically, IValueConverter used as follows:
a) Add a namespace on the XAML page that references your converter class ... usually it looks something like this:
xmlns:Converters="clr-namespace:WpfApplication1.Converters"
b) Add an instance of your converter class to the Resources section of your page (or App.xaml :
<Window.Resources> <Converters:BoolToRowHeightConverter x:Key="BoolToRowHeightConverter" /> ... </Window.Resources>
c) Access the converter instance using the x:Key value you gave it:
<RowDefinition Height="{Binding IsExpanded, ElementName=Expander5, Converter={StaticResource BoolToRowHeightConverter}}" />
source share