View Issue Details

IDProjectCategoryView StatusLast Update
0001759NoesisGUIUnity3Dpublic2020-07-24 18:36
ReporterasusralisAssigned Tosfernandez 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.3 
Target Version3.0.4Fixed in Version3.0.4 
Summary0001759: Template resources defined in visual tree are incorrectly being shared
DescriptionWhen 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>
TagsNo tags attached.
PlatformAny

Activities

There are no notes attached to this issue.

Issue History

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