C# – WPF Application that only has a tray icon

cnetwpfxaml

I am a total WPF newbie and wonder if anyone could give me some pointers how to write an application that starts minimized to tray. The idea is that it periodically fetches an RSS Feed and creates a Toaster-Popup when there are new feeds.

The Application should still have a Main Window (essentially just a list containing all feed entries), but that should be hidden by default.

I have started reading about XAML and WPF and I know that the StartupUri in the App.xaml has to point to my main window, but I have no idea what the proper way is to do the SysTray icon and hide the main window (this also means that when the user minimizes the window, it should minimize to tray, not to taskbar).

Any hints?

Best Answer

Related Topic