TaskbarIcon will not show balloon tip with custom

2019-05-21 19:38发布

问题:

I have created a WPF app which is using WPF NotifyIcon.

I am unable to get the ShowBalloonTip method to work with a custom Icon. I have tried like this:

_icon.ShowBalloonTip("Title", "Message", new Icon("Icons/accept.ico"));

Any idea how I can get a notification to work with a custom icon? (Using the built in icons works fine - i.e. using BalloonIcon).

回答1:

Try using the "Large Icon" overload.

   _icon.ShowBalloonTip("Title", "Message", new Icon("Icons/accept.ico"), largeIcon: true);

This worked for me.