View Issue Details

IDProjectCategoryView StatusLast Update
0001936NoesisGUIUnity3Dpublic2021-03-10 17:41
ReporterFaerdanAssigned Tosfernandez 
Status resolvedResolutionfixed 
Product Version3.0.4 
Target Version3.0.11Fixed in Version3.0.11 
Summary0001936: Unity crash on XAML import if a dependency property type doesn't match the default value type
DescriptionIf a dependency property type doesn't match the default value type, and that property is used in XAML, Unity will crash on import.

I've experienced this with a object property which had an empty string as it's default value.

This should log an error. Right now it's very difficult to debug as the editor crashes and the editor log is not much help.
Steps To ReproduceCreate a dependency property with a default value type that doesn't match the property type:

public static readonly DependencyProperty ValueProperty = DependencyProperty.Register(
            nameof(Value), typeof(object), typeof(ParameterViewData),
            new PropertyMetadata(string.Empty));

Use that property in Xaml:

<MyContentControl Value="Anything" />
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-03-10 16:11 Faerdan New Issue
2021-03-10 16:13 Faerdan Description Updated View Revisions
2021-03-10 17:00 sfernandez Assigned To => sfernandez
2021-03-10 17:00 sfernandez Status new => assigned
2021-03-10 17:00 sfernandez Target Version => 3.0.11
2021-03-10 17:41 sfernandez Status assigned => resolved
2021-03-10 17:41 sfernandez Resolution open => fixed
2021-03-10 17:41 sfernandez Fixed in Version => 3.0.11