hardcodet / wpf-notifyicon

NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform
Other
810 stars 125 forks source link

WPF .NET 7 - Remove the namespace from the build in ballon #99

Open Zeleksonob opened 1 year ago

Zeleksonob commented 1 year ago

Is there a way to remove the namespace name each time I'm shown a build in ballon?

12

Lakritzator commented 1 year ago

This is for the build in notification ballons, and that text is the title of the application process (or the name of the .exe) which showed it, to my knowledge you cannot simply change it. That is where a custom balloon helps.

Zeleksonob commented 1 year ago

Thanks for the answer, follow up question: can I control the timeout of this ballon or is this apply also only to custom ballon? If not, could you guide me or give me a hint as to where I can't find these windows templates for the ballon?

Lakritzator commented 1 year ago

If I recall correctly the timeout of the default balloon could be specified by the app when it's running under Windows 2000 or XP, after that (Windows 7 and later) it was controlled on a system level.

A yes, here it's documented: https://learn.microsoft.com/en-us/windows/win32/api/shellapi/ns-shellapi-notifyicondataa

About the custom balloon, if you look at the method ShowCustomBalloon (in TaskbarIcon) you can specify the timeout there.