View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004635 | NoesisGUI | C++ SDK | public | 2025-12-11 07:32 | 2026-03-04 00:39 |
| Reporter | JT | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | assigned | Resolution | open | ||
| Product Version | 3.2.10 | ||||
| Target Version | 3.2.13 | ||||
| Summary | 0004635: 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:
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>
| ||||
| Platform | Any | ||||
| related to | 0002415 | assigned | sfernandez | Binding TranslateTransform in Style |
|
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:
Could you try that? |
|
|
That works for the above example yes, though I failed to mention that a Binding is defined so that a Converter can be used. |
|
| 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 |