-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTrayIcon.xaml
More file actions
23 lines (19 loc) · 1011 Bytes
/
TrayIcon.xaml
File metadata and controls
23 lines (19 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<ResourceDictionary 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"
xmlns:local="clr-namespace:WinControlCenter"
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
x:Class="WinControlCenter.TrayIcon"
>
<tb:TaskbarIcon x:Key="WinControlCenterTrayIcon"
IconSource="/icon.ico"
ToolTipText="WinControlCenter"
>
<tb:TaskbarIcon.ContextMenu>
<ContextMenu>
<MenuItem x:Name="SettingMenuItem" Header="Setting"/>
<MenuItem x:Name="ExitMenuItem" Header="Exit"/>
</ContextMenu>
</tb:TaskbarIcon.ContextMenu>
</tb:TaskbarIcon>
</ResourceDictionary>