View Issue Details

IDProjectCategoryView StatusLast Update
0004177NoesisGUIStudiopublic2025-05-20 23:10
Reportercjones Assigned Todfranjic  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product VersionStudio_Beta 
Target VersionStudio_Beta 
Summary0004177: Attached property based RenderTransforms created by but hidden from Studio
Description

We ran into this issue earlier today which caused a bit of confusion.
While rearranging our hierarchy Studio seems to have created an attached property based TranslateTransform to one of our elements. Studio itself however reports the RenderTransform Translate.X value is 0. (Exact value it created is copy/pasted into the repro steps below)

We did not manually modify the XAML, but I don't know how to reproduce the flow which leads to the attached property transform being created, but to demonstrate the misleading UI:
1) Create a Project containing a MainPage.xaml
2) Place a TextBlock in the scene, Vertical/Horizontal alignment set to Bottom Left
3) Open your .xaml file and attach the following transform to the TextBlock

<TextBlock.RenderTransform>
  <TransformGroup TranslateTransform.Y="400">
    <ScaleTransform/>
    <SkewTransform/>
    <RotateTransform/>
    <TranslateTransform/>
  </TransformGroup>
</TextBlock.RenderTransform>
<TextBlock.LayoutTransform>
  <TransformGroup TranslateTransform.Y="320">
    <ScaleTransform/>
    <SkewTransform/>
    <RotateTransform/>
    <TranslateTransform/>
  </TransformGroup>
</TextBlock.LayoutTransform>

4) Reload the page in Noesis Studio. Your TextBlock element will now be out of place, Studio will highlight the Transform properties in blue to mark that they are changed, but values will not be visible in Studio.

Attached are screenshots of the Transform properties demonstrating

Attached Files
PlatformAny

Activities

sfernandez

sfernandez

2025-05-19 16:51

manager   ~0010711

We shouldn't write the TranslateTransform property as attached in the TransformGroup, that is a bug because it makes no sense and it is ignored.
We'll see if we can reproduce that situation.

cjones

cjones

2025-05-19 17:18

reporter   ~0010715

Thanks!
Sorry I can't be of use reproducing it. It's a file we'd had open for a while iterating some design on. I've tried a quick repro and I can't figure out what sequence of events lead to it being emitted.

I feel like there's a second part of the bug with the knowledge that it should be ignored then... what is odd though is that while it's ignored by Studio, both the Studio renderer and our own integration based on 3.2.7 are respecting the transform. Is the bug not only that it appeared, but that it isn't ignored?

sfernandez

sfernandez

2025-05-20 19:49

manager   ~0010728

Last edited: 2025-05-20 19:49

When I say that it is ignored is that

<TextBlock.RenderTransform>
  <TransformGroup TranslateTransform.Y="400">
    <ScaleTransform/>
    <SkewTransform/>
    <RotateTransform/>
    <TranslateTransform/>
  </TransformGroup>
</TextBlock.RenderTransform>

is not translating the TextBlock in any way, because that attached property set in TransformGroup has no meaning for the TransformGroup itself.

And both Studio and the NoesisGUI SDK will render that TextBlock without any translation.

cjones

cjones

2025-05-20 23:04

reporter   ~0010730

Last edited: 2025-05-20 23:10

There is definitely a bit of weirdness which goes on here with it. Attached is a small sample which replicates the issue on unmodified Studio 0.1.220-beta. The screenshot shows that despite the Render/Layout Transform.Y both showing 0 in studio, there is an offset applied pushing the Text into the Green Area.

What is even stranger is that this behaviour is inconsistent between launches. On roughly half of launches, the text will remain at 0,0. On the others it'll have the (incorrect) transform applied. Restart Studio and reopen the project repeatedly to see the behaviour. We spotted the same inconsistency between launches in the SDK

Screenshot 2025-05-20 220028.png (169,859 bytes)   
Screenshot 2025-05-20 220028.png (169,859 bytes)   

Issue History

Date Modified Username Field Change
2025-05-19 15:56 cjones New Issue
2025-05-19 15:56 cjones File Added: Screenshot 2025-05-19 145339.png
2025-05-19 15:56 cjones File Added: Screenshot 2025-05-19 145334.png
2025-05-19 15:56 cjones File Added: Screenshot 2025-05-19 145326.png
2025-05-19 15:56 cjones File Added: Screenshot 2025-05-19 145318.png
2025-05-19 15:56 cjones File Added: Screenshot 2025-05-19 145309.png
2025-05-19 16:48 sfernandez Assigned To => dfranjic
2025-05-19 16:48 sfernandez Status new => assigned
2025-05-19 16:48 sfernandez Target Version => Studio_Beta
2025-05-19 16:51 sfernandez Note Added: 0010711
2025-05-19 17:18 cjones Note Added: 0010715
2025-05-20 19:49 sfernandez Status assigned => feedback
2025-05-20 19:49 sfernandez Note Added: 0010728
2025-05-20 19:49 sfernandez Note Edited: 0010728
2025-05-20 23:04 cjones Note Added: 0010730
2025-05-20 23:04 cjones File Added: Screenshot 2025-05-20 220028.png
2025-05-20 23:04 cjones File Added: AttachedTransformDemo.zip
2025-05-20 23:04 cjones Status feedback => assigned
2025-05-20 23:10 cjones Note Edited: 0010730