WPF path data encoding

In WPF, is it possible to encode this into a single tag Pathwith the Data attribute?

<Path Stroke="White" StrokeThickness="2">
    <Path.Data>
        <PathGeometry>
            <PathFigure StartPoint="7,32">
                <ArcSegment Point="7,18" Size="200,50" RotationAngle="0" IsLargeArc="False" />
            </PathFigure>
        </PathGeometry>
    </Path.Data>
</Path>

Something like this: (only this is a completely irregular form)

<Path Stroke="DarkGoldenRod" StrokeThickness="3" 
Data="M 100,200 C 100,25 400,350 400,175 H 280" />
+3
source share
1 answer

Try the following:

<Path Data="M 7,32 A 200,50 0 0 0 7,18" .../>

See also Path Markup Syntax .

+5
source

Source: https://habr.com/ru/post/1796338/


All Articles