路径是什么意思? [英] What does path mean?

查看:375
本文介绍了路径是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在xaml中有代码

I have the code in xaml

<Grid>
                <TextBlock Text="{Binding Title}" Foreground="White" Margin="15 0 0 0" />
                <Path Width="12" 
                      Height="12" 
                      Fill="White" 
                      HorizontalAlignment="Left">
                    <Path.Data>
                        <Binding Path="ActualMarkerGeometry"
                             RelativeSource="{RelativeSource AncestorType=telerik:LegendItemControl}">
                        </Binding>
                    </Path.Data>
                </Path>
            </Grid>



它会绘制一个类似于的正方形.

我的问题是我认为应该像这样使用代码RectangleGeometry



It draws a square like this.

My questions are I thought it is supposed to use the code RectangleGeometry like this

<Path.Data>
    <RectangleGeometry Rect="50,50,25,25" />
  </Path.Data> 


但事实并非如此.为什么?

次要问题:
正方形位于文本的左侧,如果我想将其置于右侧,如何更改代码?

我尝试过的事情:

microsift文档使用


But it is not. Why?

Secondary question:
The squares are on the left of the text, if I want to place them on the right, how to change the code?

What I have tried:

microsift docs uses

rectanglegeometry

.

推荐答案

根据: ^ ]:
According to: Path Markup Syntax | Microsoft Docs[^]:
报价:

强大而复杂的迷你语言,可用于指定路径的几何形状

powerful and complex mini-language you can use to specify path geometries


路径是轻量级(小),可伸缩的,与图像相比保留了高质量.


Paths are lightweight(small), scalable, retaining high quality when compared with images.


这篇关于路径是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆