ThumbButtonInfo.Description Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the text to display for the thumbnail button tooltip.
public:
property System::String ^ Description { System::String ^ get(); void set(System::String ^ value); };
public string Description { get; set; }
member this.Description : string with get, set
Public Property Description As String
Property Value
The text to display for the thumbnail button tooltip. The default is an empty string.
Examples
The following example shows how to create a ThumbButtonInfo in markup. The ThumbButtonInfo is bound to the MediaCommands.Stop command. The tooltip descriptive text is Stop. This example is part of a larger example provided for the TaskbarItemInfo class.
<ThumbButtonInfo
DismissWhenClicked="True"
Command="MediaCommands.Stop"
CommandTarget="{Binding ElementName=btnStop}"
Description="Stop"
ImageSource="{StaticResource ResourceKey=StopImage}"/>
Remarks
You can add an image to a thumbnail button, but no property exists for setting text on the thumbnail button face. However, you can set the Description property to add descriptive text that is displayed in a tooltip when the mouse pointer moves over the thumbnail button.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈