mshvern23
Topic Author
Posts: 35
Joined: 22 May 2023, 02:00

PathGeometry doesn't render when references a resource

20 Jun 2023, 03:05

In WPF both examples render fine, but in NoesisGUI (with Unreal), the last one produces:
Cannot convert 'M 1888.2001 1.915677 V 1001.9211 l -24.8263 43.0005 h -392.9762 l -65.2936 29.7968 h 486.7515 L 1920 1025.9707 V 1.915677 Z' into a 'PathFigureCollection' object
Settings Figures directly:
<Path Fill="White" StrokeThickness="0.264583">
    <Path.Data>
        <PathGeometry Figures="M 1888.2001 1.915677 V 1001.9211 l -24.8263 43.0005 h -392.9762 l -65.2936 29.7968 h 486.7515 L 1920 1025.9707 V 1.915677 Z" FillRule="NonZero"/>
    </Path.Data>
</Path>
Setting Figures through a resource:
<ResourceDictionary>
    <PathFigureCollection x:Key="Path.FrameRight">
        M 1888.2001 1.915677 V 1001.9211 l -24.8263 43.0005 h -392.9762 l -65.2936 29.7968 h 486.7515 L 1920 1025.9707 V 1.915677 Z
    </PathFigureCollection>
</ResourceDictionary>

<Path Fill="White" StrokeThickness="0.264583">
    <Path.Data>
        <PathGeometry Figures="{StaticResource Path.FrameRight}" FillRule="NonZero"/>
    </Path.Data>
</Path>
 
mshvern23
Topic Author
Posts: 35
Joined: 22 May 2023, 02:00

Re: PathGeometry doesn't render when references a resource

20 Jun 2023, 06:36

I was able to fix it by declaring a Geometry instead and using it directly as Data
<Geometry x:Key="Path.FrameLeft">...</Geometry>
...
<Path Data="{StaticResource Path.FrameLeft}" ... />
Not sure what UWP has to do with NoesisGUI
 
User avatar
sfernandez
Site Admin
Posts: 3109
Joined: 22 Dec 2011, 19:20

Re: PathGeometry doesn't render when references a resource

20 Jun 2023, 19:20

Cannot convert 'M 1888.2001 1.915677 V 1001.9211 l -24.8263 43.0005 h -392.9762 l -65.2936 29.7968 h 486.7515 L 1920 1025.9707 V 1.915677 Z' into a 'PathFigureCollection' object
We are clearly missing a converter in Noesis to support this scenario. Could you please report it in our bugtracker.
I was able to fix it by declaring a Geometry instead and using it directly as Data
Yes, that is what we recommend to reuse geometries.
 
mshvern23
Topic Author
Posts: 35
Joined: 22 May 2023, 02:00

Re: PathGeometry doesn't render when references a resource

10 Jul 2023, 01:22

Cannot convert 'M 1888.2001 1.915677 V 1001.9211 l -24.8263 43.0005 h -392.9762 l -65.2936 29.7968 h 486.7515 L 1920 1025.9707 V 1.915677 Z' into a 'PathFigureCollection' object
We are clearly missing a converter in Noesis to support this scenario. Could you please report it in our bugtracker.
I was able to fix it by declaring a Geometry instead and using it directly as Data
Yes, that is what we recommend to reuse geometries.
Created an issue for this: https://www.noesisengine.com/bugs/view.php?id=2647

By the way, the account above seems to be a spam bot.
 
User avatar
sfernandez
Site Admin
Posts: 3109
Joined: 22 Dec 2011, 19:20

Re: PathGeometry doesn't render when references a resource

10 Jul 2023, 12:22

Thanks for the report, we'll implement it soon.

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 18 guests