C# 클래스 Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnail

Represents a tabbed thumbnail on the taskbar for a given window or a control.
상속: IDisposable
파일 보기 프로젝트 열기: dlech/SshAgentLib 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetTabbedThumbnailClosingEventArgs TabbedThumbnailClosedEventArgs
GetTabbedThumbnailEventArgs TabbedThumbnailEventArgs
OnTabbedThumbnailActivated void
OnTabbedThumbnailBitmapRequested void
OnTabbedThumbnailClosed bool
OnTabbedThumbnailMaximized void
OnTabbedThumbnailMinimized void
SetImage void

공개 메소드들

메소드 설명
Dispose ( ) : void

Release the native objects.

InvalidatePreview ( ) : void

Invalidate any existing thumbnail preview. Calling this method will force DWM to request a new bitmap next time user previews the thumbnails or requests Aero peek preview.

SetImage ( Bitmap bitmap ) : void

Override the thumbnail and peek bitmap. By providing this bitmap manually, Thumbnail Window manager will provide the Desktop Window Manager (DWM) this bitmap instead of rendering one automatically. Use this property to update the bitmap whenever the control is updated and the user needs to be shown a new thumbnail on the taskbar preview (or aero peek).

If the bitmap doesn't have the right dimensions, the DWM may scale it or not render certain areas as appropriate - it is the user's responsibility to render a bitmap with the proper dimensions.

SetWindowIcon ( Icon icon ) : void

Sets the window icon for this thumbnail preview

SetWindowIcon ( IntPtr iconHandle ) : void

Sets the window icon for this thumbnail preview

This method will not release the icon handle. It is the caller's responsibility to release the icon handle.

TabbedThumbnail ( IntPtr parentWindowHandle, Control control ) : System

Creates a new TabbedThumbnail with the given window handle of the parent and a child control (e.g. TabPage or Panel)

This method can also be called when using a WindowsFormHost control in a WPF application. Call this method with the main WPF Window's handle, and windowsFormHost.Child control.

TabbedThumbnail ( IntPtr parentWindowHandle, IntPtr windowHandle ) : System

Creates a new TabbedThumbnail with the given window handle of the parent and a child control/window's handle (e.g. TabPage or Panel)

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Release the native objects.

비공개 메소드들

메소드 설명
GetTabbedThumbnailClosingEventArgs ( ) : TabbedThumbnailClosedEventArgs
GetTabbedThumbnailEventArgs ( ) : TabbedThumbnailEventArgs
OnTabbedThumbnailActivated ( ) : void
OnTabbedThumbnailBitmapRequested ( ) : void
OnTabbedThumbnailClosed ( ) : bool

Returns true if the thumbnail was removed from the taskbar; false if it was not.

OnTabbedThumbnailMaximized ( ) : void
OnTabbedThumbnailMinimized ( ) : void
SetImage ( IntPtr hBitmap ) : void

/// Override the thumbnail and peek bitmap. /// By providing this bitmap manually, Thumbnail Window manager will provide the /// Desktop Window Manager (DWM) this bitmap instead of rendering one automatically. /// Use this property to update the bitmap whenever the control is updated and the user /// needs to be shown a new thumbnail on the taskbar preview (or aero peek). ///

Override the thumbnail and peek bitmap. By providing this bitmap manually, Thumbnail Window manager will provide the Desktop Window Manager (DWM) this bitmap instead of rendering one automatically. Use this property to update the bitmap whenever the control is updated and the user needs to be shown a new thumbnail on the taskbar preview (or aero peek).

/// If the bitmap doesn't have the right dimensions, the DWM may scale it or not /// render certain areas as appropriate - it is the user's responsibility /// to render a bitmap with the proper dimensions. ///If the bitmap doesn't have the right dimensions, the DWM may scale it or not render certain areas as appropriate - it is the user's responsibility to render a bitmap with the proper dimensions.

메소드 상세

Dispose() 공개 메소드

Release the native objects.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Release the native objects.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

InvalidatePreview() 공개 메소드

Invalidate any existing thumbnail preview. Calling this method will force DWM to request a new bitmap next time user previews the thumbnails or requests Aero peek preview.
public InvalidatePreview ( ) : void
리턴 void

SetImage() 공개 메소드

Override the thumbnail and peek bitmap. By providing this bitmap manually, Thumbnail Window manager will provide the Desktop Window Manager (DWM) this bitmap instead of rendering one automatically. Use this property to update the bitmap whenever the control is updated and the user needs to be shown a new thumbnail on the taskbar preview (or aero peek).
If the bitmap doesn't have the right dimensions, the DWM may scale it or not render certain areas as appropriate - it is the user's responsibility to render a bitmap with the proper dimensions.
public SetImage ( Bitmap bitmap ) : void
bitmap System.Drawing.Bitmap The image to use.
리턴 void

SetWindowIcon() 공개 메소드

Sets the window icon for this thumbnail preview
public SetWindowIcon ( Icon icon ) : void
icon System.Drawing.Icon System.Drawing.Icon for the window/control associated with this preview
리턴 void

SetWindowIcon() 공개 메소드

Sets the window icon for this thumbnail preview
This method will not release the icon handle. It is the caller's responsibility to release the icon handle.
public SetWindowIcon ( IntPtr iconHandle ) : void
iconHandle System.IntPtr Icon handle (hIcon) for the window/control associated with this preview
리턴 void

TabbedThumbnail() 공개 메소드

Creates a new TabbedThumbnail with the given window handle of the parent and a child control (e.g. TabPage or Panel)
This method can also be called when using a WindowsFormHost control in a WPF application. Call this method with the main WPF Window's handle, and windowsFormHost.Child control.
public TabbedThumbnail ( IntPtr parentWindowHandle, Control control ) : System
parentWindowHandle System.IntPtr Window handle of the parent window. /// This window has to be a top-level window and the handle cannot be null or IntPtr.Zero
control System.Windows.Forms.Control Child control for which a tabbed thumbnail needs to be displayed
리턴 System

TabbedThumbnail() 공개 메소드

Creates a new TabbedThumbnail with the given window handle of the parent and a child control/window's handle (e.g. TabPage or Panel)
public TabbedThumbnail ( IntPtr parentWindowHandle, IntPtr windowHandle ) : System
parentWindowHandle System.IntPtr Window handle of the parent window. /// This window has to be a top-level window and the handle cannot be null or IntPtr.Zero
windowHandle System.IntPtr Window handle of the child control or window for which a tabbed /// thumbnail needs to be displayed
리턴 System