View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004767 | NoesisGUI | Studio | public | 2026-02-02 14:43 | 2026-04-24 11:25 |
| Reporter | dstewart | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | unable to reproduce | ||
| Product Version | Studio_Beta | ||||
| Target Version | Studio_Beta | ||||
| Summary | 0004767: A SolidColorBrush Stored In A Page's Resources Is Unable To Use A Color Resource Stored in GlobalResources. | ||||
| Description | Currently, it is possible for Resources stored within the GlobalResources Dictionary, to be inaccessible by a Page's Resources. See video: https://youtu.be/lCJIjd_dlMA?si=oAhkWhpU30ey1UBX&t=646 Repro Steps: 1) Create a Studio Project featuring a MainPage.xaml 3) From the Resources Panel, select GlobalResources.xaml, and create a new 'Color' Resource within it. 4) Access the Resource for the Page's SolidColorBrush, either through the Resources Panel, or by opening the RootGrid's 3-Dot menu, and clicking on the 'go to resource' arrow. Observe how in the SolidColorBrush, the Color saved in Step 3), is not available as a Color Swatch to pick from to populate the SolidColorBrush Resource. Expected Results: A Page's Resources are able to access the GlobalResources.xaml Resources. | ||||
| Platform | Any | ||||
|
GlobalResources are not expected to see resources defined in a Page. The look up for resources is performed from the node where it is used up the view tree, if not found, then it searches in the application resources (GlobalResources + merged dictionaries). For example, if I have a Page like this:
And I want to use a resource in the Button, the resource lookup will search in this order:
It never goes on the opposite direction. Anyway, what happens in the video is in fact a bug, because a SolidColorBrush defined at the Page level, should be able to use a Color resource defined at GlobalResources. |
|
|
It was also not my expectation that a GlobalResources dictionary would be able to access a Page's Resources; I was a bit confused when transcribing the note from the meeting. I'll amend the ticket to revolve around the bug you're describing instead. Thanks Sergio! |
|
|
Correcting Description and creating new repro steps for the new situation. |
|
|
These exact repro steps are working for me, even as far back as 0.1.266. |
|
|
Closing this one, unable to repro - appears to be fixed! |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-02-02 14:43 | dstewart | New Issue | |
| 2026-02-05 12:03 | jsantos | Assigned To | => sfernandez |
| 2026-02-05 12:03 | jsantos | Status | new => assigned |
| 2026-02-05 12:03 | jsantos | Target Version | => Studio_Beta |
| 2026-02-05 20:22 | sfernandez | Status | assigned => feedback |
| 2026-02-05 20:22 | sfernandez | Note Added: 0011847 | |
| 2026-02-05 20:22 | sfernandez | Note Edited: 0011847 | |
| 2026-02-06 11:27 | dstewart | Note Added: 0011849 | |
| 2026-02-06 11:27 | dstewart | Status | feedback => assigned |
| 2026-02-06 11:45 | dstewart | Summary | Certain Page-Stored Resources Can Be Innaccessible To GlobalResources.xaml => A Brush Stored In A Page's Resources Is Unable To Use A Colour Resource Stored in GlobalResources. |
| 2026-02-06 11:45 | dstewart | Description Updated | |
| 2026-02-06 11:45 | dstewart | Note Added: 0011850 | |
| 2026-02-06 11:45 | dstewart | Summary | A Brush Stored In A Page's Resources Is Unable To Use A Colour Resource Stored in GlobalResources. => A SollidColorBrush Stored In A Page's Resources Is Unable To Use A Color Resource Stored in GlobalResources. |
| 2026-02-06 11:47 | dstewart | Note Edited: 0011849 | |
| 2026-03-17 15:06 | dstewart | Summary | A SollidColorBrush Stored In A Page's Resources Is Unable To Use A Color Resource Stored in GlobalResources. => A SolidColorBrush Stored In A Page's Resources Is Unable To Use A Color Resource Stored in GlobalResources. |
| 2026-04-24 02:37 | dfranjic | Note Added: 0012258 | |
| 2026-04-24 11:25 | dstewart | Status | assigned => resolved |
| 2026-04-24 11:25 | dstewart | Resolution | open => unable to reproduce |
| 2026-04-24 11:25 | dstewart | Note Added: 0012265 |