Ive tried to make my converter to work but the XAML doesn’t know where it is.. but its there in a folder called Converters.
Here how my XAML are setup…
Fill="{Binding RequestStatus, Converter={StaticResource converters:StatusToColorConverter}}">
At the top…
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:Exemple8.Convertisseurs">
My converter…
Public Class StatusToColorConverter
Implements IValueConverter
...
That’s not how it works,
StaticResourcereferences objects added to theResourcesdictionary on controls and objects, you need to create an instance and reference it by its key or create it right in theBinding.e.g.