-
Notifications
You must be signed in to change notification settings - Fork 1
/
PopCatWindow.xaml
47 lines (44 loc) · 1.92 KB
/
PopCatWindow.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
<Window x:Class="PopCat.PopCatWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:tb="http://www.hardcodet.net/taskbar"
mc:Ignorable="d"
Height="400" Width="400"
WindowStyle="None"
ResizeMode="NoResize"
Topmost="True"
AllowsTransparency="True"
ShowInTaskbar="False"
Loaded="PopCatWindow_OnLoaded"
Unloaded="PopCatWindow_OnUnloaded">
<!-- Resources are accessed programatically -->
<!-- ReSharper disable Xaml.RedundantResource -->
<Window.Resources>
<BitmapImage x:Key="0" UriSource="Cats/0.png" />
<BitmapImage x:Key="1" UriSource="Cats/1.png" />
<BitmapImage x:Key="2" UriSource="Cats/2.png" />
<BitmapImage x:Key="3" UriSource="Cats/3.png" />
<BitmapImage x:Key="4" UriSource="Cats/4.png" />
<BitmapImage x:Key="5" UriSource="Cats/5.png" />
<BitmapImage x:Key="TrayIcon" UriSource="Cats/tray.ico" />
</Window.Resources>
<Window.Background>
<SolidColorBrush Opacity="0.94" Color="#101010" />
</Window.Background>
<Grid>
<tb:TaskbarIcon Visibility="Visible"
IconSource="{StaticResource TrayIcon}"
MenuActivation="RightClick">
<tb:TaskbarIcon.ContextMenu>
<ContextMenu>
<MenuItem Header="Exit" Click="MenuItem_Exit_OnClick" />
</ContextMenu>
</tb:TaskbarIcon.ContextMenu>
</tb:TaskbarIcon>
<!-- Control is accessed programatically -->
<!-- ReSharper disable once UnusedMember.Global -->
<Image x:Name="Image" Source="{StaticResource 0}" Margin="10" />
</Grid>
</Window>