ThumbButtonInfo.Description Property

Definition

Gets or sets the text to display for the thumbnail button tooltip.

public string Description { get; set; }

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

Producto Versiones
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also