View Issue Details

IDProjectCategoryView StatusLast Update
0004767NoesisGUIStudiopublic2026-04-24 11:25
Reporterdstewart Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status resolvedResolutionunable to reproduce 
Product VersionStudio_Beta 
Target VersionStudio_Beta 
Summary0004767: 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
2) Select the RootGrid, pick a color for the 'Background' Property, then cllick on its 3-Dot Menu, and select 'Create Resource'. Save this Resource in the Page.
This will create a SolidColorBrush resource.

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.
This will open the SolidColorBrush in the Properties Panel.

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.

PlatformAny

Activities

sfernandez

sfernandez

2026-02-05 20:22

manager   ~0011847

Last edited: 2026-02-05 20:22

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:

<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Grid>
    <Button/>
  </Grid>
</Page>

And I want to use a resource in the Button, the resource lookup will search in this order:

  1. In Button.Resources + merged dictionaries
  2. In Grid.Resources + merged dictionaries
  3. In Page.Resources + merged dictionaries
  4. In Application Resources (GlobalResources + merged dictionaries)

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.

dstewart

dstewart

2026-02-06 11:27

developer   ~0011849

Last edited: 2026-02-06 11:47

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!

dstewart

dstewart

2026-02-06 11:45

developer   ~0011850

Correcting Description and creating new repro steps for the new situation.

dfranjic

dfranjic

2026-04-24 02:37

developer   ~0012258

These exact repro steps are working for me, even as far back as 0.1.266.
I was unable to reproduce with these steps.

dstewart

dstewart

2026-04-24 11:25

developer   ~0012265

Closing this one, unable to repro - appears to be fixed!

Issue History

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