NotifyIcon reference in Wpf doesn't work
I am having problems with this code. I think I have the correct usings but the NotifyIcon is still not being recognized. Does anyone know why?
11 Replies
yeah wpf doesnt have that you need a 3rd party package
Hardcodet.NotifyIcon.Wpf 1.1.0
This is an implementation of a NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform. It does not just rely on the Windows Forms NotifyIcon component, but is a purely independent control which leverages several features of the WPF framework in order to display rich tooltips, popups, context menus, and balloon messages. It can be...
ive used this one before
There used to be a way to use the windows forms notify iirc
I'm going to try that library you mention though, as using the old notify icon was ass
yeah you can reference winforms
but its overkill to reference an entire framework just for that
ok awesome thank you for clarifying! I seem to be now getting an error for : Application how can I fix that?
public partial class App : Application(error here)
{
private NotifyIcon notifyIcon;
}
what's the error
sorry im just tired, forgot to put in the using
Do you know what reference ContextMenu needs?
Read docs
ctrl + .