Page 1 of 1

InvalidOperationException: Native type 'TypeConverter' is not registered

Posted: 19 Jan 2024, 12:03
by Otter
Hi,

I'm trying to implement a MarkupExtension like this:
public class SomeExtension : MarkupExtension
{
        public Type Type { get; set; }
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            // Do something with Type
        }
 }
And use it in XAML
<namespace:Some Type="{x:Type namespace:SomeType}"/>
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!

Re: InvalidOperationException: Native type 'TypeConverter' is not registered

Posted: 23 Jan 2024, 13:24
by sfernandez
This is a bug in Noesis handling Type properties, could you please report it in our bugtracker?
I will provide a patch for you to try there.

Re: InvalidOperationException: Native type 'TypeConverter' is not registered

Posted: 23 Jan 2024, 17:11
by Otter