From ce1b3965afa1d52b291ab388435ab25d3c0f599c Mon Sep 17 00:00:00 2001 From: dahall Date: Wed, 4 Nov 2020 10:03:42 -0700 Subject: [PATCH] Exposed underlying handle of StockIcon via IconHandle --- Windows.Shell/StockIcon.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Windows.Shell/StockIcon.cs b/Windows.Shell/StockIcon.cs index ad350ff3..70b592ac 100644 --- a/Windows.Shell/StockIcon.cs +++ b/Windows.Shell/StockIcon.cs @@ -42,6 +42,10 @@ namespace Vanara.Windows.Shell /// Gets the icon image in format. public Icon Icon { get { Refresh(); return hIcon.IsNull ? null : Icon.FromHandle((IntPtr)hIcon); } } + /// Gets the icon handle. + /// The icon handle. + public HICON IconHandle => hIcon; + /// Gets or sets the Stock Icon identifier associated with this icon. public SHSTOCKICONID Identifier { get; set; }