View Issue Details

IDProjectCategoryView StatusLast Update
0001936NoesisGUIUnitypublic2021-03-10 17:41
ReporterFaerdan Assigned Tosfernandez  
PrioritynormalSeveritycrash 
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
Description

If 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 Reproduce

Create 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" />

PlatformAny

Activities

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
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
2025-10-10 13:29 jsantos Category Unity3D => Unity