【发布时间】:2020-07-11 22:46:27
【问题描述】:
如何在 UWP 中的禁用按钮上显示工具提示?
Button b=new button();
b.IsEnabled=false;
b.content="Button";
ToolTip t= new ToolTip();
t.Content="Hello";
ToolTipService.SetToolTip(b, ToolTip);
【问题讨论】:
-
按钮被禁用...为什么要显示工具提示?
-
即使它被禁用,我想在工具提示中显示按钮的用途?
-
Here is how to do the same thing in wpf。也许同样的解决方案也适用?
-
UWP 中不存在 ShowOnDisabled 属性