View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001940 | NoesisGUI | C# SDK | public | 2021-03-15 18:33 | 2021-05-06 17:28 |
| Reporter | ai_enabled | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.0.10 | ||||
| Summary | 0001940: IMultiValueConverter receives BaseComponent[] values when the control is hidden | ||||
| Description | Hi guys, it's a new bug that just appeared in 3.0.10 and seems to be related to this change from the release notes: The issue is: when the control is collapsed and it has a MultiValueConverter inside, object[] values provided to the IMultiValueConverter as arguments all appear as BaseComponent instance (the same instance several times; are they supposed to be "null"?)...see the attached screenshot. Regards! | ||||
| Attached Files | |||||
| Platform | Any | ||||
|
When one of the binding is not resolved the converter will receive a DependencyProperty.UnsetValue in the corresponding index of the 'values' array. |
|
|
You're right, it's DependencyProperty.UnsetValue. Thank you! I was assuming it's some kind of data corruption. The issue happened with a quite complex data binding case like this one:
Suggestion: define a new private class in C# SDK: DependencyPropertyUnsetValue. Use it specifically to return a singleton instance for DependencyProperty.UnsetValue. So library users like me will see it in the debugger and/or exception message, and understand that it's not a bug with some corrupted data being passed in. Regards! |
|
|
By the way, is it expected that FallbackValue provides "False"/"True" as a string instead of bool and "1"/"2"/"3.0"/etc as a string instead of the integer or floating-point number? It's quite complicated to use. |
|
|
|
|
|
|
Now DependencyProperty.UnsetValue and Binding.DoNothing show with the right name when debugging in C#. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-03-15 18:33 | ai_enabled | New Issue | |
| 2021-03-15 18:33 | ai_enabled | File Added: Screenshot at 20-32-38.png | |
| 2021-03-15 18:33 | ai_enabled | Summary | IMultiValueConverter receives BaseComponent when the component is hidden => IMultiValueConverter receives BaseComponent[] values when the control is hidden |
| 2021-03-15 18:33 | ai_enabled | Description Updated | |
| 2021-03-15 18:33 | ai_enabled | Description Updated | |
| 2021-03-15 18:34 | ai_enabled | Description Updated | |
| 2021-03-15 18:51 | sfernandez | Assigned To | => sfernandez |
| 2021-03-15 18:51 | sfernandez | Status | new => feedback |
| 2021-03-15 18:51 | sfernandez | Note Added: 0007080 | |
| 2021-03-15 19:28 | ai_enabled | Note Added: 0007081 | |
| 2021-03-15 19:28 | ai_enabled | Status | feedback => assigned |
| 2021-03-15 19:28 | ai_enabled | Note Edited: 0007081 | |
| 2021-03-15 19:33 | ai_enabled | Note Added: 0007082 | |
| 2021-03-15 19:37 | sfernandez | Note Added: 0007083 | |
| 2021-03-15 20:12 | sfernandez | Status | assigned => feedback |
| 2021-03-15 20:12 | sfernandez | Note Added: 0007084 | |
| 2021-03-16 12:46 | jsantos | Target Version | => 3.0.12 |
| 2021-05-04 02:40 | jsantos | Target Version | 3.0.12 => 3.0.13 |
| 2021-05-06 17:28 | sfernandez | Status | feedback => resolved |
| 2021-05-06 17:28 | sfernandez | Resolution | open => fixed |
| 2021-05-06 17:28 | sfernandez | Fixed in Version | => 3.0.13 |
| 2021-05-06 17:28 | sfernandez | Note Added: 0007224 |