InvalidOperationException: Native type 'TypeConverter' is not registered
Posted: 19 Jan 2024, 12:03
Hi,
I'm trying to implement a MarkupExtension like this:
And use it in XAML
And when I run above code in Blend everything works as expected but in Unity it throws: InvalidOperationException: Native type 'TypeConverter' is not registered
Do I need to register this somewhere and/or are there any workaround for this?
Thanks for answers!
I'm trying to implement a MarkupExtension like this:
Code: Select all
public class SomeExtension : MarkupExtension
{
public Type Type { get; set; }
public override object ProvideValue(IServiceProvider serviceProvider)
{
// Do something with Type
}
}
Code: Select all
<namespace:Some Type="{x:Type namespace:SomeType}"/>
Do I need to register this somewhere and/or are there any workaround for this?
Thanks for answers!