NotifyIcon Control

A WPF implementation for the NotifyIcon component from Windows Forms.
You can instantiate it from XAML, use bindings to set its properties and receive routed events. Also, the context menu is a WPF ContextMenu, so any content can be put into it.

Example:
<av:NotifyIcon Icon="{Binding Icon}" Text="{Binding Title}">
    <FrameworkElement.ContextMenu>
        <ContextMenu>
            <MenuItem Header="Some Text" />
        </ContextMenu>
    </FrameworkElement.ContextMenu>
</av:NotifyIcon>

Last edited Aug 11, 2007 at 2:03 PM by aelij, version 1

Comments

aelij Nov 6, 2008 at 11:41 AM 
Hi,

These issues have been solved in the October 2008 release.
1. The icon no longer displays in design mode.
2. You can set Visibility to Hidden to explicitly show the icon, even when the visual tree is not rendered.

bbl Apr 16, 2008 at 12:08 PM 
Hi,

I have some problem with this great component:
1. It's activating at designtime as well, so when I open the project in VS/Blend, the notify icon will be shown on the notofication area part of the systray (but without any icon). The reason is I know: WPF components in VS/Blend are realy instantiated, but in this case this is not too lucky, I think.
2. When - runtime - the window (which it was defined in) will be hidden, the NotifyIcon will be disappeared, and after showing the window, it appears again, which aggain not too lucky thing.

Is there any workaround for theese side effects?

Thx
BBL