Xaml工具提示中的项目符号 [英] Bullets in a Xaml Tooltip

查看:55
本文介绍了Xaml工具提示中的项目符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一切都在标题中.我希望能够在工具提示中添加一些项目符号列表,但到目前为止,还没有找到任何简单的方法.

Everything is in the title. I'd like to be able to add some bullet list in a Tooltip but so far haven't found any simple way.

提前谢谢!

推荐答案

您要使用BulletDecorator作为ToolTip的一部分.示例:

You want to use the BulletDecorator as part of the ToolTip. Example:

      <ToolTip>
        <BulletDecorator>
          <BulletDecorator.Bullet>
            <Ellipse Height="10" Width="10" Fill="Blue"/>
          </BulletDecorator.Bullet>
          <TextBlock>Text with a bullet!</TextBlock>
        </BulletDecorator>
      </ToolTip>

有关更多信息,请参见 http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.bulletdecorator(v = vs.100).aspx

For more information, see http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.bulletdecorator(v=vs.100).aspx

这篇关于Xaml工具提示中的项目符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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