View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001759 | NoesisGUI | Unity3D | public | 2020-07-24 17:16 | 2020-07-24 18:36 |
Reporter | asusralis | Assigned To | sfernandez | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.0.3 | ||||
Target Version | 3.0.4 | Fixed in Version | 3.0.4 | ||
Summary | 0001759: Template resources defined in visual tree are incorrectly being shared | ||||
Description | When defining resources inside a Template as part of visual tree, those resources should be different instances for each control instance as it happens in WPF: From forum topic: https://www.noesisengine.com/forums/viewtopic.php?f=3&t=2057 | ||||
Steps To Reproduce | <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid.Resources> <ControlTemplate x:Key="btnTemplate" TargetType="Button"> <Grid> <Grid.Resources> <SolidColorBrush x:Key="bgBrush" Color="{Binding Background.Color, RelativeSource={RelativeSource TemplatedParent}}"/> </Grid.Resources> <Border Background="{StaticResource bgBrush}" BorderBrush="Black" BorderThickness="1"/> </Grid> </ControlTemplate> </Grid.Resources> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> <Button Template="{StaticResource btnTemplate}" Background="Red" Width="200" Height="50"/> <Button Template="{StaticResource btnTemplate}" Background="Green" Width="200" Height="50" Margin="0,2"/> <Button Template="{StaticResource btnTemplate}" Background="Blue" Width="200" Height="50"/> </StackPanel> </Grid> | ||||
Tags | No tags attached. | ||||
Platform | Any | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2020-07-24 17:16 | sfernandez | New Issue | |
2020-07-24 17:16 | sfernandez | Reporter | sfernandez => asusralis |
2020-07-24 17:16 | sfernandez | Assigned To | => sfernandez |
2020-07-24 17:16 | sfernandez | Status | new => assigned |
2020-07-24 17:17 | sfernandez | Target Version | => 3.0.4 |
2020-07-24 18:36 | sfernandez | Status | assigned => resolved |
2020-07-24 18:36 | sfernandez | Resolution | open => fixed |
2020-07-24 18:36 | sfernandez | Fixed in Version | => 3.0.4 |