Wpf System.Windows.Media.ImageSourcesConverter cannot be applied
-
Hey all it has been a few years since I last worked on my WPF code and sadly I'm not remembering what all I did in order for it to work as its coded. The current issue I am facing is this: An object of the type 'System.Windows.Media.ImageSourcesConverter' cannot be applied to a property that expects the type 'System.Windows.Data.IValueConverter'. It has the above error on this line of code:
The full XAML code being:
-
Hey all it has been a few years since I last worked on my WPF code and sadly I'm not remembering what all I did in order for it to work as its coded. The current issue I am facing is this: An object of the type 'System.Windows.Media.ImageSourcesConverter' cannot be applied to a property that expects the type 'System.Windows.Data.IValueConverter'. It has the above error on this line of code:
The full XAML code being:
The error message refers to the
System.Windows.Media.ImageSourcesConverter
class. Even if your customImageSourceConverter
was in that namespace, the name doesn't match -ImageSource**s**
is not the same asImageSource
(without the "s"). Unless that's a typo in your question, then either the error message is referring to something other than the code you've posted, or the code you've posted is not the code that's running.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
The error message refers to the
System.Windows.Media.ImageSourcesConverter
class. Even if your customImageSourceConverter
was in that namespace, the name doesn't match -ImageSource**s**
is not the same asImageSource
(without the "s"). Unless that's a typo in your question, then either the error message is referring to something other than the code you've posted, or the code you've posted is not the code that's running.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Problem being is that
ImageSourcesConverter.cs
does not exists. I only have: https://i.stack.imgur.com/bP0Vo.png[^]
So as I said, either there's a typo in your question, or the code you've shown isn't the code that's generating that error.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer