向按钮添加注释
本文关键字:注释 添加 按钮 | 更新日期: 2023-09-27 18:34:14
我需要使用 c# 语言向 asp.net 中的按钮添加标签。每当鼠标指向按钮时,我都需要查看标签。我正在设计一个 wpf 应用程序。任何帮助,不胜感激。
如果这是 WPF,我认为您不需要标记,因为标记在指向控件时不可见,但工具提示可见。
<Button Content="Submit" Tooltip="Click this to submit"
Command="{Binding SubmitCommand}"/>
我想你说的是工具提示:
<Button Content="Submit">
<Button.ToolTip>
<ToolTip>
<StackPanel>
<TextBlock FontWeight="Bold">Submit Request</TextBlock>
<TextBlock>Submits the request to the server.</TextBlock>
</StackPanel>
</ToolTip>
</Button.ToolTip>