|
26 | 26 | <converters:ApplicationNameToTranslatedStringConverter x:Key="ApplicationNameToTranslatedStringConverter" /> |
27 | 27 | <converters:ApplicationNameToIconConverter x:Key="ApplicationNameToIconConverter" /> |
28 | 28 | <converters:IntZeroToVisibilityCollapsedConverter x:Key="IntZeroToVisibilityCollapsedConverter" /> |
| 29 | + <!-- ReSharper disable once Xaml.RedundantResource - Used in TrayIcon --> |
| 30 | + <ContextMenu x:Key="ContextMenuNotifyIcon" MinWidth="200" Opened="ContextMenu_Opened" x:Shared="False"> |
| 31 | + <MenuItem Header="{x:Static localization:Strings.Show}" Command="{Binding ShowWindowCommand}"> |
| 32 | + <MenuItem.Icon> |
| 33 | + <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> |
| 34 | + <Rectangle.OpacityMask> |
| 35 | + <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=OpenInNew}" /> |
| 36 | + </Rectangle.OpacityMask> |
| 37 | + </Rectangle> |
| 38 | + </MenuItem.Icon> |
| 39 | + </MenuItem> |
| 40 | + <MenuItem Header="{x:Static localization:Strings.Status}" Command="{Binding OpenStatusWindowCommand}"> |
| 41 | + <MenuItem.Icon> |
| 42 | + <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> |
| 43 | + <Rectangle.OpacityMask> |
| 44 | + <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Pulse}" /> |
| 45 | + </Rectangle.OpacityMask> |
| 46 | + </Rectangle> |
| 47 | + </MenuItem.Icon> |
| 48 | + </MenuItem> |
| 49 | + <MenuItem Header="{x:Static localization:Strings.Settings}" Command="{Binding OpenSettingsFromTrayCommand}"> |
| 50 | + <MenuItem.Icon> |
| 51 | + <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> |
| 52 | + <Rectangle.OpacityMask> |
| 53 | + <VisualBrush Stretch="Uniform" Visual="{iconPacks:MaterialLight Kind=Cog}" /> |
| 54 | + </Rectangle.OpacityMask> |
| 55 | + </Rectangle> |
| 56 | + </MenuItem.Icon> |
| 57 | + </MenuItem> |
| 58 | + <MenuItem Header="{x:Static localization:Strings.Close}" Command="{Binding CloseApplicationCommand}"> |
| 59 | + <MenuItem.Icon> |
| 60 | + <Rectangle Width="16" Height="16" Fill="Red"> |
| 61 | + <Rectangle.OpacityMask> |
| 62 | + <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=WindowClose}" /> |
| 63 | + </Rectangle.OpacityMask> |
| 64 | + </Rectangle> |
| 65 | + </MenuItem.Icon> |
| 66 | + </MenuItem> |
| 67 | + </ContextMenu> |
29 | 68 | </mah:MetroWindow.Resources> |
30 | 69 | <mah:MetroWindow.TitleTemplate> |
31 | 70 | <DataTemplate> |
|
0 commit comments