加号路径中的数据值是多少 [英] What is the Data value of plus sign in Path
本文介绍了加号路径中的数据值是多少的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Path对象中使用data属性绘制加号和减号.
How to draw plus and minus signs in using data property in Path object.
这是我的三角形路径对象.我需要将其更改为加号.
This is my triangle path object. I need to change it to plus symbol.
<Path x:Name="trianglePath" Data="M 0 8 H 12 V 15 Z"/>
推荐答案
在这里,我使用XAML路径标记语法创建了一个正负号,它是10 x 10像素:
Here, I've created a plus and minus sign which is 10 x 10 pixels using XAML path markup syntax:
<Path Margin="10" Stroke="White" Data="M0,5 H10 M5,5 V10Z" StrokeThickness="2" Height="10" Width="10" />
<Path Margin="10" Stroke="White" Data="M0,5 H10" StrokeThickness="2" Height="10" Width="10" />
尝试设计路径图时,设置路径元素的高度和高度会很有帮助.宽度优先.为了更好地理解XAML路径标记语法,请参阅MSDN .
When experimenting with designing your path drawing, it's helpful to set the path element's height & width first. To better understand XAML path markup syntax, see MSDN.
这篇关于加号路径中的数据值是多少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文