PathGeometry doesn't render when references a resource
In WPF both examples render fine, but in NoesisGUI (with Unreal), the last one produces:
Setting Figures through a resource:
Settings Figures directly: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
Code: Select all
<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>
Code: Select all
<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>
Re: PathGeometry doesn't render when references a resource
I was able to fix it by declaring a Geometry instead and using it directly as Data
Not sure what UWP has to do with NoesisGUI
Code: Select all
<Geometry x:Key="Path.FrameLeft">...</Geometry>
...
<Path Data="{StaticResource Path.FrameLeft}" ... />
-
sfernandez
Site Admin
- Posts: 3109
- Joined:
Re: PathGeometry doesn't render when references a resource
We are clearly missing a converter in Noesis to support this scenario. Could you please report it in our bugtracker.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
Yes, that is what we recommend to reuse geometries.I was able to fix it by declaring a Geometry instead and using it directly as Data
Re: PathGeometry doesn't render when references a resource
Created an issue for this: https://www.noesisengine.com/bugs/view.php?id=2647We are clearly missing a converter in Noesis to support this scenario. Could you please report it in our bugtracker.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
Yes, that is what we recommend to reuse geometries.I was able to fix it by declaring a Geometry instead and using it directly as Data
By the way, the account above seems to be a spam bot.
-
sfernandez
Site Admin
- Posts: 3109
- Joined:
Re: PathGeometry doesn't render when references a resource
Thanks for the report, we'll implement it soon.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests