<Application x:Class="MassiveKnob.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:tb="http://www.hardcodet.net/taskbar"
             ShutdownMode="OnExplicitShutdown">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Style.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <ContextMenu x:Shared="false" x:Key="NotifyIconMenu">
                <MenuItem Header="_Settings" Click="NotifyIconMenuSettingsClick" Style="{StaticResource DefaultMenuItem}" />
                <MenuItem Header="_Quit" Click="NotifyIconMenuQuitClick" />
            </ContextMenu>

            <tb:TaskbarIcon
                x:Key="NotifyIcon"
                Visibility="Visible"
                ToolTipText="Massive Knob"
                IconSource="/Resources/NotifyIcon.ico"
                ContextMenu="{StaticResource NotifyIconMenu}"
                TrayMouseDoubleClick="NotifyIconTrayMouseDoubleClick"/>
        </ResourceDictionary>
    </Application.Resources>
</Application>