当鼠标光标在WPF中的按钮上时显示文本或副标题

Mat*_*901 4 c# wpf mouse button

当鼠标光标悬停在按钮上时,如何显示文本或副标题?

the*_*god 6

试试这个:

 <Button ToolTipService.InitialShowDelay="5000" 
    ToolTipService.ShowDuration="2000" 
    ToolTipService.BetweenShowDelay="10000" 
    ToolTip="This is a tool tip." />
Run Code Online (Sandbox Code Playgroud)