View Issue Details

IDProjectCategoryView StatusLast Update
0004646NoesisGUIStudiopublic2026-02-16 21:22
ReporterRafael Munoz Assigned Tojsantos  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product Version3.2.10 
Target Version3.2.11Fixed in Version3.2.11 
Summary0004646: Difference between WPF and Studio on Rect rendering with Auto size
Description

I think in the box model that Noesis and WPF use, stroke thickness contributes to the Width and Height of the element. With them being auto this means that a Rect with auto size that has an alignment different from Stretch would have the size of the Stroke Thickness. (Not sure how this interacts with Inside vs Center thickness)

The auto size is calculated as expected in both WPF and Noesis Studio, but Studio does not render the shape in this situation. It happens for both horizontal and vertical alignment of the Rect. Same happen for ellipses too, I have not tested other shapes.

You can workaround to set the affected dimension to local, but must be greater than the auto value, otherwise the shape disappears. (Even when it is set as Local)

See the attached screenshots for reference.

Studio Version: v0.1.259-beta

Attached Files
NoesisStudio.png (71,547 bytes)   
NoesisStudio.png (71,547 bytes)   
WPF.png (82,756 bytes)   
WPF.png (82,756 bytes)   
PlatformAny

Relationships

related to 0004711 resolvedjsantos Path cap end not applied when trimming the path 

Activities

sfernandez

sfernandez

2025-12-15 13:58

manager   ~0011622

This is happening because the geometry is marked as "empty", so it doesn't try to render it.

Even if I change the code to check if the Pen has a valid stroke so it tries to render this shape, it fails in some situations where it can't generate any valid stroke cached path
See the following xaml:

  <Grid Width="1000" Height="1000">
    <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Top" Stroke="Blue" StrokeThickness="30" Margin="100,100,100,0"/>
    <Rectangle HorizontalAlignment="Left" VerticalAlignment="Top" Stroke="Blue" StrokeThickness="30" Margin="100,200,100,0"/>
    <Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Top" Stroke="Blue" StrokeThickness="30" Margin="100,300,100,0"/>
    <Ellipse HorizontalAlignment="Left" VerticalAlignment="Top" Stroke="Blue" StrokeThickness="30" Margin="100,400,100,0"/>
  </Grid>
Rafael Munoz

Rafael Munoz

2025-12-15 15:37

reporter   ~0011623

So, is it because the underlying shape has no area? If there is no good fix, maybe it could be then validated that thickness cannot be larger nor equal than the relevant dimension?

sfernandez

sfernandez

2025-12-15 17:56

manager   ~0011628

It works fine in Blend, so we should find a way to fix it in our implementation so it renders too.

jsantos

jsantos

2025-12-17 00:11

manager   ~0011648

I understand this is a 3.2.10 issue right?

Rafael Munoz

Rafael Munoz

2025-12-17 08:24

reporter   ~0011649

I was testing just in studio editor v0.1.259-beta. I'm not sure how it matches to the runtime version.

sfernandez

sfernandez

2025-12-17 11:34

manager   ~0011651

Last edited: 2026-01-21 12:52

I understand this is a 3.2.10 issue right?

No, it's a problem that it's been there always.

jsantos

jsantos

2025-12-18 14:29

manager   ~0011659

Great, assigned to 3.2.11. I will have a look at this as soon as possible.

Rafael Munoz

Rafael Munoz

2026-01-20 18:10

reporter   ~0011725

Found another instance of a similar problem with lines where Line Thickness matches their width. I attach a sample page reproducing the issue. The workaround for now is using a math converter on the binding fixing the width so we add 1 and they dont match. ( Then it renders )

BugSample.xaml (1,380 bytes)   
<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  d:DesignWidth="1920"
  d:DesignHeight="1080"
  Background="#FF4D5052" xmlns:noesis="clr-namespace:NoesisGUIExtensions">
  <StackPanel>
    <Line x:Name="PlainLine" X2="100" Stretch="Fill" Stroke="#FF000000" Fill="#FFF4F4F5" StrokeThickness="200" StrokeStartLineCap="Square" StrokeEndLineCap="Round"/>
    <Line x:Name="LineWidthThickness_NotRendering" X2="100" Stretch="Fill" Stroke="#FF000000" Fill="#FFF4F4F5" StrokeThickness="200" StrokeStartLineCap="Square" StrokeEndLineCap="Round" Width="{Binding Path=StrokeThickness, RelativeSource={RelativeSource Self}}" HorizontalAlignment="Left"/>
    <Line x:Name="LineWidthThicknessPlusOne" X2="100" Stretch="Fill" Stroke="#FF000000" Fill="#FFF4F4F5" StrokeThickness="200" StrokeStartLineCap="Square" StrokeEndLineCap="Round" HorizontalAlignment="Left">
      <Line.Width>
        <Binding Path="StrokeThickness" RelativeSource="{RelativeSource Self}">
          <Binding.Converter>
            <noesis:MathConverter Expression="{}{0}+1"/>
          </Binding.Converter>
        </Binding>
      </Line.Width>
    </Line>
  </StackPanel>
</Page>
BugSample.xaml (1,380 bytes)   

Issue History

Date Modified Username Field Change
2025-12-13 11:03 Rafael Munoz New Issue
2025-12-13 11:03 Rafael Munoz File Added: NoesisStudio.png
2025-12-13 11:03 Rafael Munoz File Added: WPF.png
2025-12-15 12:13 jsantos Assigned To => sfernandez
2025-12-15 12:13 jsantos Status new => assigned
2025-12-15 12:13 jsantos Target Version => Studio_Beta
2025-12-15 13:55 sfernandez Assigned To sfernandez => jsantos
2025-12-15 13:58 sfernandez Note Added: 0011622
2025-12-15 15:37 Rafael Munoz Note Added: 0011623
2025-12-15 17:56 sfernandez Note Added: 0011628
2025-12-17 00:10 jsantos Product Version Studio_Beta => 3.2.10
2025-12-17 00:10 jsantos Target Version Studio_Beta => 3.2.11
2025-12-17 00:11 jsantos Note Added: 0011648
2025-12-17 08:24 Rafael Munoz Note Added: 0011649
2025-12-17 11:34 sfernandez Note Added: 0011651
2025-12-17 11:35 sfernandez Note Edited: 0011651
2025-12-18 14:29 jsantos Note Added: 0011659
2026-01-20 18:10 Rafael Munoz Note Added: 0011725
2026-01-20 18:10 Rafael Munoz File Added: BugSample.xaml
2026-01-20 19:32 jsantos Target Version 3.2.11 => 3.2.12
2026-01-20 19:43 jsantos Target Version 3.2.12 => 3.2.11
2026-01-21 12:52 jsantos Note Edited: 0011651
2026-02-16 21:10 jsantos Status assigned => resolved
2026-02-16 21:10 jsantos Resolution open => fixed
2026-02-16 21:10 jsantos Fixed in Version => 3.2.11
2026-02-16 21:22 jsantos Relationship added related to 0004711