View Issue Details

IDProjectCategoryView StatusLast Update
0004635NoesisGUIC++ SDKpublic2026-03-04 00:39
ReporterJT Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product Version3.2.10 
Target Version3.2.13 
Summary0004635: TranslateTransform leveraging StaticResource does not work properly if defined in Style
Description

One can define StaticResources for the components of a TranslateTransform, used as follows:

<TranslateTransform
    X="{Binding Source={StaticResource X}}"
    Y="{Binding Source={StaticResource Y}}"/>

But this does not work in 3.2.10 if the TranslateTransform is specified in a Style, as the value for a RenderTransform.

The attached XAML file renders differently in XamlPlayer 3.2.3 and 3.2.10, and the same difference exists using the C++ SDK.

Attached Files
render-transform.xaml (1,248 bytes)   
<Grid
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System"
    Width="500" Height="500" Background="Blue">

    <Grid.Resources>
        <sys:Single x:Key="X">-5</sys:Single>
        <sys:Single x:Key="Y">-5</sys:Single>

        <Style TargetType="{x:Type Ellipse}">
            <!-- this only works in 3.2.3 -->
            <Setter Property="RenderTransform">
                <Setter.Value>
                    <TranslateTransform
                        X="{Binding Source={StaticResource X}}"
                        Y="{Binding Source={StaticResource Y}}"/>
                </Setter.Value>
            </Setter>
        </Style>
    </Grid.Resources>

    <Canvas Width="300" Height="300" Background="Pink">
        <Ellipse Width="10" Height="10" Fill="Green">
            <!-- this works in 3.2.3 and 3.2.10 -->
            <!-- Ellipse.RenderTransform>
                <TranslateTransform
                    X="{Binding Source={StaticResource X}}"
                    Y="{Binding Source={StaticResource Y}}"/>
            </Ellipse.RenderTransform -->
        </Ellipse>
    </Canvas>
</Grid>
render-transform.xaml (1,248 bytes)   
PlatformAny

Relationships

related to 0002415 assignedsfernandez Binding TranslateTransform in Style 

Activities

sfernandez

sfernandez

2025-12-11 10:36

manager   ~0011597

The problem is not the StaticResource, but the Binding (related to issue 0002415).

In case you don't need to bind any data property you can apply the StaticResource directly in the property:

<TranslateTransform X="{StaticResource X}" Y="{StaticResource Y}"/>

Could you try that?

JT

JT

2025-12-11 11:04

reporter   ~0011598

That works for the above example yes, though I failed to mention that a Binding is defined so that a Converter can be used.

Issue History

Date Modified Username Field Change
2025-12-11 07:32 JT New Issue
2025-12-11 07:32 JT File Added: render-transform.xaml
2025-12-11 10:32 sfernandez Relationship added related to 0002415
2025-12-11 10:36 sfernandez Assigned To => sfernandez
2025-12-11 10:36 sfernandez Status new => feedback
2025-12-11 10:36 sfernandez Note Added: 0011597
2025-12-11 10:36 sfernandez Target Version => 3.2.11
2025-12-11 11:04 JT Note Added: 0011598
2025-12-11 11:04 JT Status feedback => assigned
2025-12-12 02:35 jsantos Description Updated
2026-01-20 19:32 jsantos Target Version 3.2.11 => 3.2.12
2026-03-04 00:39 jsantos Target Version 3.2.12 => 3.2.13