View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004189 | NoesisGUI | Studio | public | 2025-05-26 17:34 | 2025-10-28 14:18 |
| Reporter | dstewart | Assigned To | sfernandez | ||
| Priority | normal | Severity | major | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | Studio_Beta | ||||
| Target Version | Studio_Beta | Fixed in Version | Studio_Beta | ||
| Summary | 0004189: MultiBindings Don't Reflect the Data Values They Are Bound To | ||||
| Description | Currently, MultiBindings are: Repro Steps: 1) Create a Page with a MainPage.xaml. 5) Introduce a TextBlock to MainPage.xaml, and in its 'Text' Property, click on the 3-Dot menu and select 'Create MulitBinding'. 6) Click the '+' (Add icon) at the top right of the MultiBinding Window, and set its Path Property to 'MyFirstProperty'. Observe how the TextBlock on Stage is not reflecting the MyFirstProperty Value of '20'. 7) Clear the LocalValue for the MultiBinding's 'StringFormat' field, then set 'MathConverter' as the 'Converter' Property. Observe how the TextBlock on Stage is not reflecting the MyFirstProperty Value of '20'. 8) Add a second Binding to the MultiBinding, by clicking the '+' (Add icon) at the top right of the MultiBinding Window, and set its Path Property to 'MySecondProperty'. 9) In the MathConverter's 'Expression' field (accessible via the MathConverter Expander), set a value of {0}-{1}. Observe how the TextBlock on Stage is not reflecting the MyFirstProperty Value of '10' [MyFirstProperty (20) - MySecondProperty (10) = 10] 10) Remove the 'MySecondProperty' Binding from the MultiBinding, leaving a MultiBinding with a single MyFirstProperty Binding. 11) Clear the MathConverter Property, and instead, insert '{0}' (no quotes) into the 'StringFormat' Property. Observe how unlike like in Step 6), the value for "MyFirstProperty" actually appears this time. 12) Change the Path Property of the Binding from working 'MyFirstProperty' to 'MySecondProperty'. Observe how the value in the Text Property, and on-Stage is not updating from 20 (MyFirstProperty) to 10 (MySecondProperty). | ||||
| Attached Files | |||||
| Platform | Any | ||||
|
MathConverter, when used in a MultiBinding, can only be target float properties, not text ones because there is no automatic conversion to target property type in MultiBindings. We can improve the MathConverter to check the target type and do a manual conversion in that case. |
|
|
+1 from me for this approach! |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-05-26 17:34 | dstewart | New Issue | |
| 2025-05-26 17:34 | dstewart | File Added: MultiBinding.jpg | |
| 2025-05-26 17:46 | jsantos | Assigned To | => sfernandez |
| 2025-05-26 17:46 | jsantos | Status | new => assigned |
| 2025-05-26 17:46 | jsantos | Target Version | => Studio_Beta |
| 2025-10-28 12:24 | sfernandez | Status | assigned => feedback |
| 2025-10-28 12:24 | sfernandez | Note Added: 0011252 | |
| 2025-10-28 12:49 | dstewart | Note Added: 0011255 | |
| 2025-10-28 12:49 | dstewart | Status | feedback => assigned |
| 2025-10-28 14:18 | sfernandez | Status | assigned => resolved |
| 2025-10-28 14:18 | sfernandez | Resolution | open => fixed |
| 2025-10-28 14:18 | sfernandez | Fixed in Version | => Studio_Beta |