View Issue Details

IDProjectCategoryView StatusLast Update
0001780NoesisGUIUnity3Dpublic2020-08-17 18:22
ReporterblafolletteAssigned Tosfernandez 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.1 
Target Version3.0.5Fixed in Version3.0.5 
Summary0001780: Native type is not registered error when calling FindName("myName") as ResourceDictionary
DescriptionI've got a big collection of flags that are stored in a <ResourceDictionary x:Name="myName"> in xaml. I wrote an IValueConverter that takes an input string from an item property in a collection and returns the svg resource. The code behind for the xaml exposes a ResouceDictionary property that I use in the IValueConverter to reference the dictionary and return values by key.

This is all working great in WPF, but in Unity when I call FindName("myName") to manually assign the ResourceDictionary to the accessor property, it throws an exception "System.InvalidOperationException: Native type is not registered".
Steps To Reproduce1. Create a xaml page with a ResourceDictionary and define a name for it using the x:Name attribute
2. In the page's code-behind, define an accessor property of type ResourceDictionary
3. in the definition for InitializeComponent(), assign the above property the value of the named ResourceDictionary using FindName()
4. FindName should throw the "Native type is not registered" exception
TagsC#, ResourceDictionary, Unity, xaml
PlatformWindows

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-08-17 11:20 blafollette New Issue
2020-08-17 11:20 blafollette Tag Attached: C#
2020-08-17 11:20 blafollette Tag Attached: ResourceDictionary
2020-08-17 11:20 blafollette Tag Attached: Unity
2020-08-17 11:20 blafollette Tag Attached: xaml
2020-08-17 17:53 sfernandez Assigned To => sfernandez
2020-08-17 17:53 sfernandez Status new => assigned
2020-08-17 17:53 sfernandez Target Version => 3.0.5
2020-08-17 18:22 sfernandez Status assigned => resolved
2020-08-17 18:22 sfernandez Resolution open => fixed
2020-08-17 18:22 sfernandez Fixed in Version => 3.0.5