共用方式為


ThumbButtonInfo.Description 屬性

定義

取得或設定縮圖按鈕工具提示要顯示的文字。

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

屬性值

String

縮圖按鈕工具提示要顯示的文字。 預設為空字串。

範例

下列範例示範如何在標記中建立 ThumbButtonInfo 。 系 ThumbButtonInfo 結至 MediaCommands.Stop 命令。 工具提示描述性文字為 Stop。 此範例是針對 類別提供的較大範例的 TaskbarItemInfo 一部分。

<ThumbButtonInfo
    DismissWhenClicked="True"
    Command="MediaCommands.Stop"
    CommandTarget="{Binding ElementName=btnStop}"
    Description="Stop"
    ImageSource="{StaticResource ResourceKey=StopImage}"/>

備註

您可以將影像新增至縮圖按鈕,但縮圖按鈕臉部上沒有設定文字的屬性。 不過,您可以設定 Description 屬性,以在滑鼠指標移至縮圖按鈕上方時,新增工具提示中顯示的描述性文字。

適用於

另請參閱