View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004646 | NoesisGUI | Studio | public | 2025-12-13 11:03 | 2026-02-16 21:22 |
| Reporter | Rafael Munoz | Assigned To | jsantos | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.2.10 | ||||
| Target Version | 3.2.11 | Fixed in Version | 3.2.11 | ||
| Summary | 0004646: 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 | |||||
| Platform | Any | ||||
|
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 |
|
|
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? |
|
|
It works fine in Blend, so we should find a way to fix it in our implementation so it renders too. |
|
|
I understand this is a |
|
|
I was testing just in studio editor v0.1.259-beta. I'm not sure how it matches to the runtime version. |
|
No, it's a problem that it's been there always. |
|
|
Great, assigned to |
|
|
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> |
|
| 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 |