Table of Contents

Class ThumbnailButtonClickedEventArgs

Namespace
Microsoft.WindowsAPICodePack.Taskbar
Assembly
Microsoft.WindowsAPICodePack.Shell.dll

Event args for TabbedThumbnailButton.Click event

public class ThumbnailButtonClickedEventArgs : EventArgs
Inheritance
ThumbnailButtonClickedEventArgs
Inherited Members

Constructors

ThumbnailButtonClickedEventArgs(nint, ThumbnailToolBarButton)

Creates a Event Args for the TabbedThumbnailButton.Click event

public ThumbnailButtonClickedEventArgs(nint windowHandle, ThumbnailToolBarButton button)

Parameters

windowHandle nint

Window handle for the control/window related to the event

button ThumbnailToolBarButton

Thumbnail toolbar button that was clicked

ThumbnailButtonClickedEventArgs(UIElement, ThumbnailToolBarButton)

Creates a Event Args for the TabbedThumbnailButton.Click event

public ThumbnailButtonClickedEventArgs(UIElement windowsControl, ThumbnailToolBarButton button)

Parameters

windowsControl UIElement

WPF Control (UIElement) related to the event

button ThumbnailToolBarButton

Thumbnail toolbar button that was clicked

Properties

ThumbnailButton

Gets the ThumbnailToolBarButton that was clicked

public ThumbnailToolBarButton ThumbnailButton { get; }

Property Value

ThumbnailToolBarButton

WindowHandle

Gets the Window handle for the specific control/window that is related to this event.

public nint WindowHandle { get; }

Property Value

nint

Remarks

For WPF Controls (UIElement) the WindowHandle will be IntPtr.Zero. Check the WindowsControl property to get the specific control associated with this event.

WindowsControl

Gets the WPF Control (UIElement) that is related to this event. This property may be null for non-WPF applications.

public UIElement WindowsControl { get; }

Property Value

UIElement