|
| 1 | +<Window |
| 2 | + x:Class="Text_Grab.Controls.NotifyIconWindow" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:WpfUiIcon="http://schemas.lepo.co/wpfui/2022/xaml/tray" |
| 6 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 7 | + xmlns:local="clr-namespace:Text_Grab.Controls" |
| 8 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 9 | + xmlns:wpfui="http://schemas.lepo.co/wpfui/2022/xaml" |
| 10 | + Title="NotifyIconWindow" |
| 11 | + Width="0" |
| 12 | + Height="0" |
| 13 | + Activated="Window_Activated" |
| 14 | + Background="Transparent" |
| 15 | + IsHitTestVisible="False" |
| 16 | + Left="-50" |
| 17 | + Opacity="0" |
| 18 | + ShowInTaskbar="True" |
| 19 | + ToolTip="Text Grab" |
| 20 | + Top="-50" |
| 21 | + WindowStyle="ToolWindow" |
| 22 | + mc:Ignorable="d"> |
| 23 | + <Grid> |
| 24 | + <WpfUiIcon:NotifyIcon |
| 25 | + x:Name="NotifyIcon" |
| 26 | + Icon="/Images/TealSelect40.png" |
| 27 | + IsVisibleChanged="NotifyIcon_IsVisibleChanged" |
| 28 | + LeftClick="NotifyIcon_LeftClick" |
| 29 | + ToolTip="Text Grab"> |
| 30 | + <WpfUiIcon:NotifyIcon.Menu> |
| 31 | + <ContextMenu> |
| 32 | + <MenuItem |
| 33 | + x:Name="SettingsMenuItem" |
| 34 | + Click="SettingsMenuItem_Click" |
| 35 | + Header="Settings"> |
| 36 | + <MenuItem.Icon> |
| 37 | + <wpfui:SymbolIcon Symbol="Settings24" /> |
| 38 | + </MenuItem.Icon> |
| 39 | + </MenuItem> |
| 40 | + <Separator /> |
| 41 | + <MenuItem |
| 42 | + x:Name="LastGrabMenuItem" |
| 43 | + Click="LastGrabMenuItem_Click" |
| 44 | + Header="Edit Last Grab"> |
| 45 | + <MenuItem.Icon> |
| 46 | + <wpfui:SymbolIcon Symbol="ImageEdit24" /> |
| 47 | + </MenuItem.Icon> |
| 48 | + </MenuItem> |
| 49 | + <MenuItem |
| 50 | + x:Name="LookupMenuItem" |
| 51 | + Click="LookupMenuItem_Click" |
| 52 | + Header="Quick Simple Lookup"> |
| 53 | + <MenuItem.Icon> |
| 54 | + <wpfui:SymbolIcon Symbol="TextBulletListSquareSearch20" /> |
| 55 | + </MenuItem.Icon> |
| 56 | + </MenuItem> |
| 57 | + <MenuItem |
| 58 | + x:Name="PreviousRegionMenuItem" |
| 59 | + Click="PreviousRegionMenuItem_Click" |
| 60 | + Header="Grab Previous Region"> |
| 61 | + <MenuItem.Icon> |
| 62 | + <wpfui:SymbolIcon Symbol="History24" /> |
| 63 | + </MenuItem.Icon> |
| 64 | + </MenuItem> |
| 65 | + <Separator /> |
| 66 | + <MenuItem |
| 67 | + x:Name="FullscreenGrabMenuItem" |
| 68 | + Click="FullscreenGrabMenuItem_Click" |
| 69 | + Header="Fullscreen Grab"> |
| 70 | + <MenuItem.Icon> |
| 71 | + <wpfui:SymbolIcon Symbol="SlideAdd24" /> |
| 72 | + </MenuItem.Icon> |
| 73 | + </MenuItem> |
| 74 | + <MenuItem |
| 75 | + x:Name="GrabFrameMenuItem" |
| 76 | + Click="GrabFrameMenuItem_Click" |
| 77 | + Header="Grab Frame"> |
| 78 | + <MenuItem.Icon> |
| 79 | + <wpfui:SymbolIcon Symbol="PanelBottom20" /> |
| 80 | + </MenuItem.Icon> |
| 81 | + </MenuItem> |
| 82 | + <MenuItem |
| 83 | + x:Name="EditWindowMenuItem" |
| 84 | + Click="EditWindowMenuItem_Click" |
| 85 | + Header="Edit Text Window"> |
| 86 | + <MenuItem.Icon> |
| 87 | + <wpfui:SymbolIcon Symbol="WindowEdit20" /> |
| 88 | + </MenuItem.Icon> |
| 89 | + </MenuItem> |
| 90 | + <Separator /> |
| 91 | + <MenuItem |
| 92 | + x:Name="CloseMenuItem" |
| 93 | + Click="Exit_Click" |
| 94 | + Header="Close Text Grab"> |
| 95 | + <MenuItem.Icon> |
| 96 | + <wpfui:SymbolIcon Symbol="Dismiss24" /> |
| 97 | + </MenuItem.Icon> |
| 98 | + </MenuItem> |
| 99 | + </ContextMenu> |
| 100 | + </WpfUiIcon:NotifyIcon.Menu> |
| 101 | + </WpfUiIcon:NotifyIcon> |
| 102 | + </Grid> |
| 103 | +</Window> |
0 commit comments