-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
53 lines (52 loc) · 1.88 KB
/
MainWindow.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
<Window x:Class="Keep_Asleep.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:tb="http://www.hardcodet.net/taskbar"
xmlns:local="clr-namespace:Keep_Asleep"
mc:Ignorable="d"
Icon="icons\tray.ico"
Title="MainWindow" Height="350" Width="525">
<Grid>
<tb:TaskbarIcon
PopupActivation="All"
IconSource="/icons/tray.ico"
ToolTipText="">
<tb:TaskbarIcon.TrayToolTip>
<Border
Padding="0.10 0 0 0"
Background="Black"
BorderBrush="DarkGray"
BorderThickness="2"
CornerRadius="2"
Opacity="0.7"
Width="150"
Height="60">
<TextBlock
Name="TBIconTBox"
Foreground="White"
Text="Keep Asleep Running"
HorizontalAlignment="Center"
VerticalAlignment="Center"
/>
</Border>
</tb:TaskbarIcon.TrayToolTip>
<tb:TaskbarIcon.TrayPopup>
<Border
Background="Black"
BorderBrush="DarkGray"
BorderThickness="2"
CornerRadius="2"
Width="120"
Height="40">
<Button
Click="ExitBtn_Clicked"
Content=" Exit Keep Asleep "
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
</tb:TaskbarIcon.TrayPopup>
</tb:TaskbarIcon>
</Grid>
</Window>