ThumbButtonInfo.DismissWhenClicked Property

Gets or sets a value that indicates whether the taskbar thumbnail closes when the thumbnail button is clicked.

Namespace:  Microsoft.Windows.Shell
Assembly:  Microsoft.Windows.Shell (in Microsoft.Windows.Shell.dll)

Syntax

'Declaration
Public Property DismissWhenClicked As Boolean
public bool DismissWhenClicked { get; set; }
public:
property bool DismissWhenClicked {
    bool get ();
    void set (bool value);
}
member DismissWhenClicked : bool with get, set
function get DismissWhenClicked () : boolean
function set DismissWhenClicked (value : boolean)

Property Value

Type: System.Boolean
true if the thumbnail closes; otherwise, false. The default is false.

Remarks

By default, the taskbar thumbnail remains visible when a thumbnail button is clicked. To make the thumbnail close when a thumbnail button is clicked, set the DismissWhenClicked property to true.

.NET Framework Security

See Also

Reference

ThumbButtonInfo Class

Microsoft.Windows.Shell Namespace