<Window x:Class="Artemis.UI.Screens.TrayView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:tb="http://www.hardcodet.net/taskbar"
        xmlns:s="https://github.com/canton7/Stylet"
        xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
        mc:Ignorable="d">
    <tb:TaskbarIcon IconSource="{Binding Icon}"
                    MenuActivation="LeftOrRightClick"
                    PopupActivation="DoubleClick"
                    DoubleClickCommand="{s:Action TrayBringToForeground}">

        <tb:TaskbarIcon.TrayToolTip>
            <Border Background="{DynamicResource MaterialDesignToolTipBackground}" CornerRadius="2" Padding="5">
                <TextBlock Foreground="{DynamicResource MaterialDesignPaper}">
                    Artemis
                </TextBlock>
            </Border>
        </tb:TaskbarIcon.TrayToolTip>
        <tb:TaskbarIcon.ContextMenu>
            <ContextMenu>
                <MenuItem Header="Home" Command="{s:Action TrayActivateSidebarItem}" CommandParameter="Home">
                    <MenuItem.Icon>
                        <materialDesign:PackIcon Kind="Home" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Workshop" Command="{s:Action TrayActivateSidebarItem}" CommandParameter="Workshop">
                    <MenuItem.Icon>
                        <materialDesign:PackIcon Kind="TestTube" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Surface Editor" Command="{s:Action TrayActivateSidebarItem}" CommandParameter="Surface Editor">
                    <MenuItem.Icon>
                        <materialDesign:PackIcon Kind="Edit" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Settings" Command="{s:Action TrayActivateSidebarItem}" CommandParameter="Settings">
                    <MenuItem.Icon>
                        <materialDesign:PackIcon Kind="Settings" />
                    </MenuItem.Icon>
                </MenuItem>
                <Separator />
                <MenuItem Header="Debugger" Command="{s:Action TrayOpenDebugger}">
                    <MenuItem.Icon>
                        <materialDesign:PackIcon Kind="Matrix" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Exit" Command="{s:Action TrayExit}">
                    <MenuItem.Icon>
                        <materialDesign:PackIcon Kind="Close" />
                    </MenuItem.Icon>
                </MenuItem>
            </ContextMenu>
        </tb:TaskbarIcon.ContextMenu>
    </tb:TaskbarIcon>
</Window>