HavenDV / H.NotifyIcon

TrayIcon for WPF/WinUI/Uno/MAUI
MIT License
545 stars 44 forks source link

Surface the TrayIcon Guid in TaskbarIcon #158

Closed Difegue closed 2 months ago

Difegue commented 2 months ago

Currently, it's impossible to get the NotifyIcon GUID from the library, in case you want to use NotifyIconGetRect or others. (well, unless you use reflection..)

This PR adds a simple bridge property to help with that.

HavenDV commented 2 months ago

@Difegue I remembered that there was already an Id DependencyProperty here, but I think it was not set to a valid value. I made a fix for this and it should be available in the latest NuGet package

Difegue commented 2 months ago

Wow, thank you! I saw that property but it was staying at all zeros so thought it was only meant for secondary icons or something 🤔 Will certainly use that update!