Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drawing arrow with XAML

Tags:

xaml

drawing

I don't know how can I draw an arrow with XAML. I haven't any code at the moment.

Someone can help me to make this draw with XAML code ?

Thank you for your help.

like image 277
Moussawi Avatar asked May 27 '15 07:05

Moussawi


People also ask

How to draw a line in XAML?

The Line tag of XAML draws a line. The X1,Y1 and X2,Y2 attributes represent the starting and ending point of the line and Stroke represents the color of the line. The StrokeThickness attribute represents the thickness of the line. The following code draws a line from point (100,100) t (300,100) with blue color and thickness is 2.

How do you draw a rounded rectangle in XAML?

Drawing a rounded rectangle The Ellipse tag of XAML draws an ellipse and circle (ellipse with equal height and width). The Height and Width attributes represent the height and width of the ellipse. The Stroke and StrokeThickness represents the color and thickness of the ellipse boundary.

What are the advantages of Arrow in AutoCAD?

One advantage here is that the orientation of the arrow will be suitable regardless of whether you're drawing a straight line, curve or whatever. Plus, it's faster than executing your own routine. Thanks for the compact code!

How do you draw an ellipse in XAML?

The Ellipse tag of XAML draws an ellipse and circle (ellipse with equal height and width). The Height and Width attributes represent the height and width of the ellipse. The Stroke and StrokeThickness represents the color and thickness of the ellipse boundary. The Fill attribute fills the ellipse with a color.


1 Answers

You can use TextBlock (http://xahlee.info/comp/unicode_arrows.html)

<TextBlock Text="&#x2794;" />

Or Path (https://msdn.microsoft.com/en-us/library/system.windows.shapes.path%28v=vs.110%29.aspx)

<Path Stroke="Black" Data="M 10 0 L 16 4 L 10 8 M 0 4 L 16 4" />

Maybe this tool can be useful to you PathViewer

like image 94
Nacho Avatar answered Sep 28 '22 09:09

Nacho