Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.


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


.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.