View Issue Details

IDProjectCategoryView StatusLast Update
0002161NoesisGUIC++ SDKpublic2021-11-03 13:37
Reportersteveh Assigned Tosfernandez  
Status resolvedResolutionfixed 
Product Version3.1 
Target Version3.1.2Fixed in Version3.1.2 
Summary0002161: {x:Null} is not a valid type for TextDecorations dependency property
DescriptionHi guys,

Our artists had an issue where simply checking and unchecking the Underline button in Blend caused an error to be output from Noesis.

If you have a <TextBlock />, e.g:

<TextBlock Text="Hello World" Foreground="Black" />

And then you click the "Underline" button in Blend, it adds the TextDecoration property:

<TextBlock Text="Hello World" Foreground="Black" TextDecorations="Underline" />

If you uncheck the button, rather than removing the attribute Blend sets it to {x:Null}:

<TextBlock Text="Hello World" Foreground="Black" TextDecorations="{x:Null}" />

This then causes the following error to be output from Noesis:

"Null is not a valid value for property 'TextBlock.TextDecorations'."

This fails our internal smoke tests as we have automated tests to ensure that there are no erors output from Noesis. The fix is to "Reset" the property in Blend to remove the attribute. Just thought I'd raise it here since Blend supports {x:Null} on TextDecorations so I thought Noesis should probably support it as well.
Steps To Reproduce1. Create a text block in Blend.
2. Click the "Underline" button in the Text properties in the properties panel in Blend
3. Uncheck the "Underline" button in the Text properties in the properties panel in Blend.
4. Load the file. Noesis will output an error.
TagsNo tags attached.




2021-10-26 17:15

manager   ~0007540

Thanks for this report steve

Issue History

Date Modified Username Field Change
2021-10-26 16:52 steveh New Issue
2021-10-26 17:13 jsantos Assigned To => sfernandez
2021-10-26 17:13 jsantos Status new => assigned
2021-10-26 17:14 jsantos Target Version => 3.1.2
2021-10-26 17:15 jsantos Note Added: 0007540
2021-11-03 13:37 sfernandez Status assigned => resolved
2021-11-03 13:37 sfernandez Resolution open => fixed
2021-11-03 13:37 sfernandez Fixed in Version => 3.1.2