View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001936 | NoesisGUI | Unity3D | public | 2021-03-10 16:11 | 2021-03-10 17:41 |
Reporter | Faerdan | Assigned To | sfernandez | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.0.4 | ||||
Target Version | 3.0.11 | Fixed in Version | 3.0.11 | ||
Summary | 0001936: 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" /> | ||||
Tags | No tags attached. | ||||
Platform | Any | ||||
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 |