View Issue Details

IDProjectCategoryView StatusLast Update
0004278NoesisGUIStudiopublic2026-07-21 16:15
Reporterdstewart Assigned ToAntonino  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product VersionStudio_Beta 
Target Version4.0 
Summary0004278: Middle-Mouse Clicking on a Style Property Doesn't Revert To BasedOn Property
Description

Currently, if you have a "Style_B" that is BasedOn a "Style_A":

If a Property is set in Style_B, and then cleared with the MiddleMouseClick, instead of taking the Style_A's value, it appears to revert to the Value of the Default Style.


Repro Steps:

1) Download and open the attached Project, and open the MainPage.xaml.
2) Open the Resources Panel, and visually inspect that all Resources are contained within GlobalResources.xaml
3) Right-Click on the RED tile on the Stage, and from its ContextMenu, select 'Style', then 'Edit'. This will open the 'Red' Style for Edit.

4) In the Style Dummy Editor, select the STYLE from the Navigator, and from the top of the Properties Panel, set its 'BasedOn' Property to be BasedOn the Style with "YELLOW" in its name.

In theory now, the Yellow Style should be inheriting all Values from the Red Style, unless a value is locally added to the Yellow Style (overwriting the BasedOn Style)

5) Hover over any Property containing Values set in the Style (such as 'Background'), and press down on MiddleMouse click.

Observe how the value doesn't revert to the styled its BasedOn (which for the Background, should have produced a Green background colour from the Yellow Style), but instead it populates the field with the 0% opacity colour from the Default CheckBox Style.

Expected Results: Reverting a Style Value to Default, takes on the Default informed from the BasedOn Style rather than the Element's Default Style.

Attached Files
PlatformAny

Relationships

related to 0004277 assignedsfernandez Setting a Style to be 'BasedOn' Another Doesn't Show It As 'Active' In the Property Dropdown 
related to 0004276 assignedsfernandez Setting a Style to be "BasedOn" Another Style Produces a XAML Error 

Activities

dfranjic

dfranjic

2026-04-08 03:55

developer   ~0012172

Last edited: 2026-06-26 11:11

I think this is expected result. Clearing the Style from a Button:

<Button Style="{StaticResource Style_B}"/>

currently does the following:

<Button/>

What you're suggesting it should do is:

<Button Style="{StaticResource Style_B}"/>

to:

<Button Style="{StaticResource Style_A}"/>

just because Style_B is BasedOn Style_A.

which in my opinion is weird. Maybe it should be discussed in the meeting? But in my opinion clearing the Style should remove the local value, like how every other property works.
Because Style_B is BasedOn Style_A it doesn't mean the default style for Button is now somehow Style_A.

Issue History

Date Modified Username Field Change
2025-07-01 18:27 dstewart New Issue
2025-07-01 18:27 dstewart File Added: StylesAndTemplates_BasedOn_Default.zip
2025-07-01 18:27 dstewart Relationship added related to 0004277
2025-07-01 18:28 dstewart Relationship added related to 0004276
2025-07-02 11:39 sfernandez Assigned To => dfranjic
2025-07-02 11:39 sfernandez Status new => assigned
2025-07-02 11:39 sfernandez Target Version => Studio_Beta
2026-04-08 03:55 dfranjic Note Added: 0012172
2026-04-09 16:08 sfernandez Target Version Studio_Beta => 4.0
2026-06-26 11:11 jsantos Note Edited: 0012172
2026-07-21 16:15 jsantos Assigned To dfranjic => Antonino