cairoshell / ManagedShell

A library for creating Windows shell replacements using .NET.
https://www.nuget.org/packages/ManagedShell/
Apache License 2.0
295 stars 25 forks source link

How do i use events for tray icons #64

Closed Bluscream closed 2 years ago

Bluscream commented 2 years ago

I was looking at https://github.com/cairoshell/ManagedShell/wiki/Tray-Service#notification-area-icon-interaction but it does not seem to be able to accept event handlers for "Tray Icon Changed", "Tray Text Changed" and "Tray Baloon Shown"

dremin commented 2 years ago

NotifyIcon implements INotifyPropertyChanged, so you can subscribe to the PropertyChanged event, and changes to Icon, Text, etc will raise it.

Bluscream commented 2 years ago

Thanks! :3 in the meantime i was just reading retrobar logs https://github.com/Bluscream/ahk-scripts/blob/master/lib/bluscream/tray.ahk#L32