Montag, 23. Dezember 2013

Schema of a WPF TrayIcon Application

Note: only an overview! (You should add a context menu by clicking on the trayIcon instead showing an BalloonTip and respond on its closing.)

a) create a new wpf application project
b) add an Icon to your Project and let the resource copy to your bin folder
c) add reference to System.Windows.Forms - it Hosts the NotifyIcon!
d) add System.Drawing.Imaging - used to load the *.ico file in the "bin" Folder
e) Name the MainWindows "mainWin" in XAML.
f) add the Events "Closing" and "Closed" to the XAML of the MainWindow!
g) consider the following sample:

Benefit from the best Windows Desktop app in the world and use Strokey.Net!


Keine Kommentare:

Kommentar veröffentlichen