I have a class call BinaryImageConverter implement IValueConverter in Common.Tools.
How can I call it in WPF?
<Window.Resources>
<CollectionViewSource x:Key="ProductsSource"/>
<local:BinaryImageConverter x:Key="ImgConverter" />
</Window.Resources>
Thank you.
You have to add
prefixdefinition to theWindow. For example if, the namespace ofBinaryImageConverterisKevNameSapceand its assembly isKevAssemblythen your xmal code would looks similar to below.You don’t have to specify the
assemblyif the converter class is in the same project,