-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskbarIcon.xaml
128 lines (128 loc) · 6.18 KB
/
TaskbarIcon.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Worksly"
xmlns:tb="http://www.hardcodet.net/taskbar">
<tb:TaskbarIcon x:Key="MyTaskBarIcon"
IconSource="/Icons/TM_Icon.ico"
ToolTipText="Worksly"
LeftClickCommand="{Binding ShowWindowCommand}"
DoubleClickCommand="{Binding HideWindowCommand}">
<tb:TaskbarIcon.DataContext>
<local:SystemBarViewModel/>
</tb:TaskbarIcon.DataContext>
<tb:TaskbarIcon.ContextMenu>
<ContextMenu>
<MenuItem Header="New Task" Command="{Binding ShowWindowCommand}">
<MenuItem.Icon>
<Image Source="/Icons/Add.png"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Name="EODMode" Header="Settings" Command="{Binding SettingsWindow}">
<MenuItem.Icon>
<Image Source="/Icons/Settings.png"/>
</MenuItem.Icon>
</MenuItem>
<!--<MenuItem Name="updateMenu" Header="Check for Updates" Command="{Binding CheckForUpdateCommand}">
<MenuItem.Icon>
<Image Source="/Icons/CloudDownload_16x.png"/>
</MenuItem.Icon>
</MenuItem>-->
<Separator/>
<MenuItem Header="Exit App" Command="{Binding ExitApplicationCommand}">
<MenuItem.Icon>
<Image Source="/Icons/CloseSolution.png"/>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</tb:TaskbarIcon.ContextMenu>
</tb:TaskbarIcon>
<Style TargetType="Button" x:Key="exitBtn">
<Setter Property="Background" Value="{x:Null}"/>
<Setter Property="Button.Foreground" Value="#FF575757"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Border" Background="{TemplateBinding Background}" CornerRadius="7">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<!--<Setter Property="Background" Value="#FF3A3939" TargetName="Border"/>-->
<Setter Property="Button.Foreground" Value="#FFD6D6D6" TargetName="Border"/>
<Setter Property="FontWeight" Value="Bold"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="TextBox">
<Style.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="2" />
</Style>
</Style.Resources>
</Style>
<Style TargetType="{x:Type CheckBox}">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" Value="#FF383838"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="Button" x:Key="submitBtn">
<Setter Property="Background">
<Setter.Value>
<SolidColorBrush Color="White" Opacity="0.1"/>
</Setter.Value>
</Setter>
<Setter Property="Button.Foreground" Value="#FFB0B0B0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Border" Background="{TemplateBinding Background}" CornerRadius="7" BorderThickness="1">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="#FFD6D6D6" TargetName="Border"/>
<Setter Property="Background" TargetName="Border">
<Setter.Value>
<SolidColorBrush Color="White" Opacity="0.3"/>
</Setter.Value>
</Setter>
<Setter Property="Foreground" Value="#FFD6D6D6"/>
</Trigger>
<Trigger Property="IsKeyboardFocused" Value="True">
<Setter Property="BorderBrush" Value="#FFD6D6D6" TargetName="Border"/>
<Setter Property="Background" TargetName="Border">
<Setter.Value>
<SolidColorBrush Color="White" Opacity="0.3"/>
</Setter.Value>
</Setter>
<Setter Property="Foreground" Value="#FFD6D6D6"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="Button" x:Key="submitBtnPressed">
<Setter Property="Background">
<Setter.Value>
<SolidColorBrush Color="White" Opacity="0.3"/>
</Setter.Value>
</Setter>
<Setter Property="Foreground" Value="#FFD6D6D6"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Border" Background="{TemplateBinding Background}"
CornerRadius="7" BorderThickness="1" BorderBrush="#FFD6D6D6">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>