View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002231 | NoesisGUI | Unity3D | public | 2022-01-10 00:37 | 2022-03-09 16:34 |
Reporter | C4ustic | Assigned To | sfernandez | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.1.1 | ||||
Target Version | 3.1.3 | Fixed in Version | 3.1.3 | ||
Summary | 0002231: Styles in Grid.Resources not automatically applied | ||||
Description | This 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"> <Setter.Value> <ControlTemplate TargetType="{x:Type ComboBox}"> <Grid> <Grid.Resources> <Style TargetType="ToggleButton" x:Name="comboToggleStyle"> or <Style TargetType="{x:Type ToggleButton"} x:Name="comboToggleStyle"> </Grid.Resources> ...... <ToggleButton> ....... 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. | ||||
Tags | No tags attached. | ||||
Platform | Any | ||||
related to | 0002301 | resolved | sfernandez | Runtime Error: key is needed to add an object to a dictionary |
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. |
|
We decided to follow WPF behavior and x:Name is no longer used as key in Resources. | |
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 |