问题
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.
来源:https://stackoverflow.com/questions/34804717/taskbaricon-will-not-show-balloon-tip-with-custom-icon