【问题标题】:Telerik RadToolTip won't hide when emptyTelerik RadToolTip 为空时不会隐藏
【发布时间】:2013-01-25 19:40:03
【问题描述】:

我想在工具提示中显示一个列表,但是当它为空时,工具提示不应该存在。但是,当它为空时,它仍然显示一个非常小的空框。

<t:RadDropDownButton.ToolTip>
 <t:RadToolTip Visibility="{Binding MyList, Converter={StaticResource EmptyListToCollapsedConverter}}"
               Content="{Binding MyList}">
    <t:RadToolTip.ContentTemplate>
      <DataTemplate>
        <ItemsControl ItemsSource="{Binding}"/>
      </DataTemplate>
    </t:RadToolTip.ContentTemplate>
  </t:RadToolTip>
</t:RadDropDownButton.ToolTip>

这有什么问题?它发生在使用 RadToolTip 的任何地方。设置其可见性不起作用!

【问题讨论】:

    标签: wpf silverlight telerik tooltip


    【解决方案1】:

    我认为即使您只是 Tooltip 类也会发生这种情况。 MS 不认为工具提示不应该显示。如果您设置元素的 tooltip 属性并希望隐藏/抑制它,则将附加的 ToolTipService.IsEnabled 设置为 false。

    【讨论】:

      【解决方案2】:

      我问这个问题已经有一段时间了,但事实证明我使用的控件不正确。工具提示应该应用在不同的地方。抱歉,我只记得这么多了!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-02-23
        • 2017-12-09
        • 2015-08-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多