I have a generic class that implements IValueConverter . Something like:
class MyValueConverter<T> : IValueConverter
Since XAML 2009, I can use it as follows:
<my:MyValueConverter x:TypeArguments='x:String'/>
But, apparently, this did not allow "compiling" XAML (I think we will have to wait for .NET 5)
My current workaround subclasses it for each use:
class FooMyValueConverter : MyValueConverter<Foo>
Is it possible to do this in markup only with XAML 2006?
Diego mijelshon
source share