How to transform StreamGeometry? #17412
-
<StreamGeometry>
<StreamGeometry.Transform>
<ScaleTransform ScaleX="2" ScaleY="3" />
</StreamGeometry.Transform>
<!--Unable to find suitable setter or adder for property Child of type Avalonia.Controls:Avalonia.Controls.Decorator for argument Avalonia.Base:Avalonia.Media.StreamGeometry, available setter parameter lists are:-->
</StreamGeometry> <StreamGeometry Transform="{DynamicResource testTransform}">
m 0,0 5,5
<!--'No Content property or any Add methods found for type Avalonia.Base:Avalonia.Media.StreamGeometry.-->
</StreamGeometry> None of above and many others of my attempts works. |
Beta Was this translation helpful? Give feedback.
Answered by
LaurentInSeattle
Nov 4, 2024
Replies: 1 comment 2 replies
-
Hmm, I can create a nested GeometryGroup with the desired transform that contains my StreamGeometry. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would leave the geometry alone...
And instead use a View box or apply a render transform to the UI object that uses that geometry.
HTH