Sometimes you’re writing a quick utility app that you wish to start directly in the notification area (near the clock), and not display anything on startup.
It’s actually very simple using Caliburn.Micro.
You probably already have customized your application bootstrapper already. All you have to do is modify the OnStartup method from DisplayRootViewFor<T> to displaying a custom tooltip. Here I’m using the Hardcodet.NotifyIcon.Wpf Nuget package:
protected override void OnStartup(object sender, StartupEventArgs e)
TaskbarIcon tbi = new TaskbarIcon();
tbi.Icon = Properties.Resources.sql_icon;
tbi.ToolTipText = Properties.Resources.ToolTip;
It seems obvious in retrospect, but it took me a while to find this, because I don’t modify the app bootstrapper often, so I forgot about this method.
Don’t forget to add behavior to this icon! Double-click, context menu…
I have created a Caliburn.Micro + MahApps template app if you wish a starting point : https://github.com/cosmo0/Caliburn.MahApps.Metro.Template