Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is M and L in GeometryDrawing?

Tags:

wpf

What is the meaning of M and L in this code?

<GeometryDrawing x:Name=”Front” Brush=”Red”
Geometry=”M0,260 L0,600 L110,670 L110,500 L190,550 L190,710 L300,775
L300,430 L150,175”/>
like image 637
TCM Avatar asked Oct 13 '10 15:10

TCM


1 Answers

M is for move to, L is for line to, etc. You should check this link: https://docs.microsoft.com/en-us/dotnet/desktop/wpf/graphics-multimedia/shapes-and-basic-drawing-in-wpf-overview section XAML Abbreviated Syntax.

Or better https://docs.microsoft.com/en-us/dotnet/desktop/wpf/graphics-multimedia/path-markup-syntax.

like image 194
Padel Avatar answered Oct 23 '22 03:10

Padel