-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
TrayIconResources.xaml
100 lines (99 loc) · 3.06 KB
/
TrayIconResources.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:tb="using:H.NotifyIcon"
>
<XamlUICommand
x:Key="OpenWindowCommand"
Label="Open"
Description="Open"
>
<XamlUICommand.IconSource>
<SymbolIconSource Symbol="OpenPane" />
</XamlUICommand.IconSource>
<XamlUICommand.KeyboardAccelerators>
<KeyboardAccelerator
Key="S"
Modifiers="Control"
/>
</XamlUICommand.KeyboardAccelerators>
</XamlUICommand>
<XamlUICommand
x:Key="LockUnlockWindowCommand"
Label="Ghost Mode"
Description="Ghost Mode"
>
<!--<XamlUICommand.IconSource>
<SymbolIconSource Symbol="SetLockScreen" />
</XamlUICommand.IconSource>-->
<XamlUICommand.KeyboardAccelerators>
<KeyboardAccelerator
Key="S"
Modifiers="Control"
/>
</XamlUICommand.KeyboardAccelerators>
</XamlUICommand>
<XamlUICommand
x:Key="ExitApplicationCommand"
Label="Exit"
Description="Exit"
>
<!--<XamlUICommand.IconSource>
<SymbolIconSource Symbol="ClosePane" />
</XamlUICommand.IconSource>-->
<XamlUICommand.KeyboardAccelerators>
<KeyboardAccelerator
Key="E"
Modifiers="Control"
/>
</XamlUICommand.KeyboardAccelerators>
</XamlUICommand>
<XamlUICommand
x:Key="ShowHidePlatformIconCommand"
Label="Show Platform Icons"
Description="Show/Hide Icons"
>
</XamlUICommand>
<XamlUICommand
x:Key="GitHubCommand"
Label="GitHub"
Description="GitHub"
>
<XamlUICommand.KeyboardAccelerators>
<KeyboardAccelerator
Key="G"
Modifiers="Control"
/>
</XamlUICommand.KeyboardAccelerators>
</XamlUICommand>
<XamlUICommand
x:Key="DiscordCommand"
Label="Discord"
Description="Discord"
>
<XamlUICommand.KeyboardAccelerators>
<KeyboardAccelerator
Key="D"
Modifiers="Control"
/>
</XamlUICommand.KeyboardAccelerators>
</XamlUICommand>
<tb:TaskbarIcon
x:Key="TrayIcon"
Visibility="Visible"
ToolTipText="Mage"
ContextMenuMode="PopupMenu"
LeftClickCommand="{StaticResource OpenWindowCommand}"
NoLeftClickDelay="True"
>
<tb:TaskbarIcon.ContextFlyout>
<MenuFlyout>
<MenuFlyoutItem Command="{StaticResource OpenWindowCommand}" />
<MenuFlyoutSeparator />
<MenuFlyoutItem Command="{StaticResource LockUnlockWindowCommand}" />
<MenuFlyoutSeparator />
<MenuFlyoutItem Command="{StaticResource ExitApplicationCommand}" />
</MenuFlyout>
</tb:TaskbarIcon.ContextFlyout>
</tb:TaskbarIcon>
</ResourceDictionary>