WPF:如何在文本块添加复选标记? [英] WPF: How add check mark to the textblock?

查看:146
本文介绍了WPF:如何在文本块添加复选标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道复选标记符号的标签。我需要有一个texblock。我在网上找了任何线索,没有找到任何可以使用XAML。
提前谢谢。

I am wondering if anyone knows the tag for check mark symbol. I need to have it in a texblock. I looked online for any clue and did not find anything that will work with XAML. Thank you in advance.

推荐答案

只需参考这篇文档Josh smith about
em> Label和TextBlock之间的差异

just refer this document by Josh smith about Differences between Label and TextBlock

http://joshsmithonwpf.wordpress.com/2007/07/04/differences-between-label-and-textblock/

我认为你可以使用Label

I think you can do by using Label

<Label>   
<StackPanel Orientation="Horizontal"> 
<Path 
                                Width="11" Height="11" 

                                SnapsToDevicePixels="False" 
                                Stroke="red"
                                StrokeThickness="2"
                                Data="M 2,4 C 2,4 3,5 5,13 C 5,13 5,3 12,0" />
                                <TextBlock Margin="5,0,0,0">Successfully Completed!</TextBlock>
                                </StackPanel>
                                </Label>
</StackPanel>

这篇关于WPF:如何在文本块添加复选标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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