【问题标题】:Custom Tooltip containing list of items in UWP包含 UWP 中项目列表的自定义工具提示
【发布时间】:2022-01-12 01:35:37
【问题描述】:

试图显示包含项目列表的工具提示。如何在 UWP 中实现它? 谢谢, 埃拉

【问题讨论】:

  • 如果答案已经解决了您的问题,请mark它被接受

标签: uwp uwp-xaml


【解决方案1】:

尝试显示包含项目列表的工具提示。

ToolTip 内容属性是对象类型,这意味着您可以在其中插入 itemscontrol 以呈现项目列表,

例如

<TextBlock Text="Tip">
    <ToolTipService.ToolTip>
        <ToolTip>
            <ItemsControl>
                <x:String>Hello</x:String>
                <x:String>World</x:String>           
            </ItemsControl>
        </ToolTip>
    </ToolTipService.ToolTip>
</TextBlock>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-07-07
    • 1970-01-01
    • 2018-10-24
    • 2012-02-14
    • 1970-01-01
    • 2018-01-18
    • 1970-01-01
    相关资源
    最近更新 更多