View Issue Details

IDProjectCategoryView StatusLast Update
0001759NoesisGUIUnity3Dpublic2020-07-24 18:36
ReporterasusralisAssigned Tosfernandez 
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:
Steps To Reproduce
    <ControlTemplate x:Key="btnTemplate" TargetType="Button">
          <SolidColorBrush x:Key="bgBrush" Color="{Binding Background.Color, RelativeSource={RelativeSource TemplatedParent}}"/>
        <Border Background="{StaticResource bgBrush}" BorderBrush="Black" BorderThickness="1"/>
  <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"/>
TagsNo tags attached.


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