Export (0) Print
Expand All

ThumbButtonInfo.ImageSource Property

Gets or sets the image that is displayed on the thumbnail button.

Namespace:  System.Windows.Shell
Assembly:  PresentationFramework (in PresentationFramework.dll)

public ImageSource ImageSource { get; set; }

Property Value

Type: System.Windows.Media.ImageSource
The image that is displayed on the thumbnail button. The default is null.

You can place a static or animated ImageSource on the thumbnail button. The images are rendered at the appropriate size. If the ImageSource represents an Icon, the appropriate bit depth is also used.

To provide additional textual information about the thumbnail button, set the Description property.

The following example shows how to create a ThumbButtonInfo in markup. The ThumbButtonInfo is bound to the MediaCommands.Stop command. The button image is a dark gray square defined in XAML as a static resource. This example is part of a larger example provided for the TaskbarItemInfo class.

    CommandTarget="{Binding ElementName=btnStop}"
    ImageSource="{StaticResource ResourceKey=StopImage}"/>

.NET Framework

Supported in: 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft