-
Notifications
You must be signed in to change notification settings - Fork 2
/
MainWindow.xaml
212 lines (167 loc) · 9.09 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<Window x:Class="AnimeTracker.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:local="clr-namespace:AnimeTracker"
mc:Ignorable="d"
Title="Anime Tracker" Icon="favicon.ico" Height="450" Width="800">
<Grid Background="#303030">
<Grid.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="Width" Value="70" />
<Setter Property="Height" Value="25" />
<Setter Property="Margin" Value="0,0,0,0" />
<Setter Property="Foreground" Value="WhiteSmoke"/>
<Setter Property="Background" Value="#303030"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}" BorderBrush="#575757" BorderThickness="1">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#575757"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="GridViewColumnHeader">
<Setter Property="Background" Value="#303030"/>
<Setter Property="Foreground" Value="WhiteSmoke"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GridViewColumnHeader}">
<Border Background="{TemplateBinding Background}" BorderBrush="#575757" BorderThickness="1">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#575757"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="{x:Static ToolBar.ButtonStyleKey}" TargetType="Button">
<Setter Property="Foreground" Value="WhiteSmoke"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Name="Bd"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Padding="{TemplateBinding Padding}"
SnapsToDevicePixels="true">
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#575757"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type ListView}">
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style TargetType="{x:Type ListViewItem}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Gray"/>
<Setter Property="BorderBrush" Value="Transparent"/>
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#575757"/>
<Setter Property="BorderBrush" Value="#575757"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="{x:Static ToolBar.MenuStyleKey}" TargetType="{x:Type Menu}">
<Setter Property="Background" Value="#303030"/>
<Setter Property="Foreground" Value="WhiteSmoke"/>
<Setter Property="Margin" Value="0,2,0,0"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#575757"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type MenuItem}">
<Setter Property="Foreground" Value="WhiteSmoke"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type MenuItem}">
<Border x:Name="Bd" Padding="17,0,17,0" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True" Uid="Border_38">
<ContentPresenter x:Name="ContentPresenter" Content="{TemplateBinding Header}" Grid.Column="1" ContentSource="Header" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Uid="ContentPresenter_33"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#575757"/>
</Trigger>
</Style.Triggers>
</Style>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="8.692"/>
<ColumnDefinition Width="91.308"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="25" />
<RowDefinition />
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<ToolBarTray Background="#303030">
<ToolBar ToolBarTray.IsLocked="True" Band="1" BandIndex="1" Background="#303030" Loaded="ToolBar_Loaded" Foreground="WhiteSmoke">
<ToolBar.Resources>
</ToolBar.Resources>
<ComboBox BorderBrush="#575757" Name="ComboBox" Grid.Row="1" Width="100" HorizontalAlignment="Left" VerticalAlignment="Top" SelectionChanged="ComboBox_SelectionChanged" Background="#303030" Foreground="WhiteSmoke">
</ComboBox>
<Separator/>
<Button Content="Add" Click="Button_Click_Add" Foreground="WhiteSmoke" />
<Separator/>
<Button Content="Remove" Click="Button_Click_Remove"/>
<Separator/>
<Button Content="Edit" Click="Button_Click_Edit"/>
<Separator/>
<Button Content="Up" Click="Button_Click_Up"/>
<Separator/>
<Button Content="Down" Click="Button_Click_Down"/>
<Separator/>
<Menu >
<MenuItem Header="Move To" Name="menuItemMoveTo">
<MenuItem.Style>
<Style>
</Style>
</MenuItem.Style>
</MenuItem>
</Menu>
</ToolBar>
</ToolBarTray>
<ListView Grid.ColumnSpan="3" Grid.Row="1" Name="ListView" Background="#303030" Foreground="White">
<ListView.View >
<GridView>
<GridViewColumn Header="Name" Width="120" DisplayMemberBinding="{Binding Name}"/>
<GridViewColumn Header="Season Count" Width="120" DisplayMemberBinding="{Binding SeasonCount}"/>
<GridViewColumn Header="Episode Count" Width="120" DisplayMemberBinding="{Binding EpisodeCount}"/>
<GridViewColumn Header="Url" Width="auto" DisplayMemberBinding="{Binding Url}"/>
</GridView>
</ListView.View>
</ListView>
<Button Grid.Column="2" Grid.Row="2" Content="Watch" Click="Button_Click_Watch" Margin="6,13,15,12"/>
</Grid>
</Window>