View Issue Details

IDProjectCategoryView StatusLast Update
0002231NoesisGUIUnity3Dpublic2022-03-09 16:34
ReporterC4ustic Assigned Tosfernandez  
Status resolvedResolutionfixed 
Product Version3.1.1 
Target Version3.1.3Fixed in Version3.1.3 
Summary0002231: Styles in Grid.Resources not automatically applied
DescriptionThis is a minor thing that I don't even need I just run into it after trying out some styles I found online, and though you might want to look at it.

In windows it seems like if you have this:
<Style x:Key="{x:Type ComboBox}" TargetType="{x:Type ComboBox}">
   <Setter Property="Template">
         <ControlTemplate TargetType="{x:Type ComboBox}">
                  <Style TargetType="ToggleButton" x:Name="comboToggleStyle"> or <Style TargetType="{x:Type ToggleButton"} x:Name="comboToggleStyle">
All Toggle buttons within that Grid in the template will apply the comboToggleStyle instead of the global one in windows but in NoesisGUI I get my normal style.

I tried this on a combo box style in Unity but I assume that this is the case for all usages of <Grid.Resources> with a type style like that in NoesisGUI, but that is only a guess. I'm not even sure if I like that construction but you probably aim to get as close as normal windows behavior as possible in NoesisGUI.
TagsNo tags attached.


related to 0002301 resolvedsfernandez Runtime Error: key is needed to add an object to a dictionary 




2022-02-02 15:50

manager   ~0007770

What is happening is that our xaml parser is interpreting the x:Name specified in the Style as the Key for the dictionary.
We had to do that to be compatible with how Blend added animations in Silverlight projects in the past.
But Blend no longer supports Silverlight projects so we should probably remove that and be more compatible with WPF projects.


2022-02-03 12:30

manager   ~0007774

We decided to follow WPF behavior and x:Name is no longer used as key in Resources.

Issue History

Date Modified Username Field Change
2022-01-10 00:37 C4ustic New Issue
2022-01-10 11:03 sfernandez Assigned To => sfernandez
2022-01-10 11:03 sfernandez Status new => assigned
2022-01-10 11:03 sfernandez Target Version => 3.1.3
2022-02-02 15:50 sfernandez Status assigned => feedback
2022-02-02 15:50 sfernandez Note Added: 0007770
2022-02-03 12:30 sfernandez Status feedback => resolved
2022-02-03 12:30 sfernandez Resolution open => fixed
2022-02-03 12:30 sfernandez Fixed in Version => 3.1.3
2022-02-03 12:30 sfernandez Note Added: 0007774
2022-03-09 16:34 jsantos Relationship added related to 0002301