Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnail.SetWindowIcon C# (CSharp) Method

SetWindowIcon() public method

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
return void
        public void SetWindowIcon(Icon icon)
        {
            Icon = icon;

            // If we have a TaskbarWindow assigned, set its icon
            if (TaskbarWindow != null && TaskbarWindow.TabbedThumbnailProxyWindow != null)
            {
                TaskbarWindow.TabbedThumbnailProxyWindow.Icon = Icon;
            }
        }

Same methods

TabbedThumbnail::SetWindowIcon ( IntPtr iconHandle ) : void

Usage Example

コード例 #1
0
ファイル: FrmMain.cs プロジェクト: sgtfrankieboy/Paint-Bucket
 public void InitalizeDWM()
 {
     TabbedThumbnail thumbnail = new TabbedThumbnail(this.Handle, Editor);
     TaskbarManager.Instance.TabbedThumbnail.AddThumbnailPreview(thumbnail);
     thumbnail.SetImage(new Bitmap(Editor.Image));
     thumbnail.DisplayFrameAroundBitmap = false;
     thumbnail.Title = "Paint Bucket";
     thumbnail.SetWindowIcon(this.Icon);
 }
All Usage Examples Of Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnail::SetWindowIcon