Otter
Topic Author
Posts: 18
Joined: 23 Sep 2023, 12:04

InvalidOperationException: Native type 'TypeConverter' is not registered

19 Jan 2024, 12:03

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!
 
User avatar
sfernandez
Site Admin
Posts: 2997
Joined: 22 Dec 2011, 19:20

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

23 Jan 2024, 13:24

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.
 

Who is online

Users browsing this forum: Ahrefs [Bot] and 8 guests