-
Notifications
You must be signed in to change notification settings - Fork 20
/
MainWindow.xaml
833 lines (788 loc) · 54.3 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
<Window x:Class="RoliSoft.TVShowTracker.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:TVShowTracker="clr-namespace:RoliSoft.TVShowTracker" xmlns:Transitionals="clr-namespace:Transitionals.Controls;assembly=Transitionals" xmlns:Transitions="clr-namespace:Transitionals.Transitions;assembly=Transitionals" xmlns:GreyableImage="clr-namespace:RoliSoft.TVShowTracker.Dependencies.GreyableImage"
xmlns:Shell="clr-namespace:System.Windows.Shell;assembly=PresentationFramework" Title="RS TV Show Tracker" WindowStartupLocation="CenterScreen"
Height="490" Width="900" MinWidth="900" MinHeight="300" Margin="0" Padding="0" TextOptions.TextFormattingMode="Display" RenderOptions.BitmapScalingMode="HighQuality"
UseLayoutRounding="True" SourceInitialized="WindowSourceInitialized" Loaded="WindowLoaded" IsVisibleChanged="WindowIsVisibleChanged" KeyUp="WindowKeyUp" Closing="WindowClosing" Icon="/RSTVShowTracker;component/tv.ico">
<Window.Resources>
<!-- head gradient -->
<LinearGradientBrush x:Key="HeadGradient" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="Maroon" Offset="0.8"/>
<GradientStop Color="Red" Offset="0.1"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="HeadGradientBusy" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="DarkBlue" Offset="0.8"/>
<GradientStop Color="Blue" Offset="0.1"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="HeadGradientHover" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="DarkOrange" Offset="0.8"/>
<GradientStop Color="Yellow" Offset="0.1"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="UpdateGradient" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#7DFF8C00" Offset="0.7"/>
<GradientStop Color="#7DFFFF00" Offset="0"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="UpdateGradientHover" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#FFFF8C00" Offset="0.7"/>
<GradientStop Color="#FFFFFF00" Offset="0"/>
</LinearGradientBrush>
<!-- tab control animation -->
<DataTemplate x:Key="TabTemplate">
<Transitionals:TransitionElement Content="{Binding}">
<Transitionals:TransitionElement.Transition>
<Transitions:FadeAndGrowTransition />
</Transitionals:TransitionElement.Transition>
</Transitionals:TransitionElement>
</DataTemplate>
<!-- tab item style -->
<Style x:Key="MainTabItem" TargetType="{x:Type TabItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabItem}">
<Grid>
<Border Name="Border" BorderBrush="Red" BorderThickness="0,0,0,3" Margin="0" Cursor="Hand">
<ContentPresenter TextOptions.TextFormattingMode="Ideal" TextOptions.TextRenderingMode="Grayscale" x:Name="ContentSite" VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Header" Margin="6,2,9,2" />
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter TargetName="Border" Property="BorderBrush" Value="Red" />
</Trigger>
<Trigger Property="IsSelected" Value="False">
<Setter TargetName="Border" Property="BorderBrush" Value="#50ff0000" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- tab item text style -->
<Style x:Key="TabItemText" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="White" />
<Setter Property="FontFamily" Value="Lucida" />
<Setter Property="FontSize" Value="12" />
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<!-- listview style -->
<Style TargetType="{x:Type ListViewItem}">
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<ControlTemplate.Resources>
<Storyboard x:Key="HoverOn">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="HoverRectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="HoverOff">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="HoverRectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="SelectedOn">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="SelectedRectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="SelectedOff">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="SelectedRectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</ControlTemplate.Resources>
<Grid SnapsToDevicePixels="true" Margin="0,0,0,-1">
<Rectangle x:Name="Background" IsHitTestVisible="False" Opacity="1" Fill="Transparent" RadiusX="1" RadiusY="1" />
<Rectangle x:Name="HoverRectangle" IsHitTestVisible="False" Opacity="0" Fill="#30000000" RadiusX="1" RadiusY="1" />
<Rectangle x:Name="SelectedRectangle" IsHitTestVisible="False" Opacity="0" Fill="#50000000" RadiusX="1" RadiusY="1" />
<Border x:Name="Bd" SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="0,1,0,1" Margin="0">
<GridViewRowPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}"/>
</Border>
<Rectangle x:Name="FocusVisualElement" Visibility="Collapsed" Stroke="#ffffff" StrokeThickness="1" RadiusX="1" RadiusY="1" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="true">
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource SelectedOff}" x:Name="SelectedOff_BeginStoryboard"/>
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource SelectedOn}" x:Name="SelectedOn_BeginStoryboard"/>
</Trigger.EnterActions>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource HoverOff}" x:Name="HoverOff_BeginStoryboard"/>
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource HoverOn}"/>
</Trigger.EnterActions>
</Trigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="GridViewColumnHeaderGripper" TargetType="Thumb">
<Setter Property="Width" Value="0" />
<Setter Property="Background" Value="Transparent" />
</Style>
<Style TargetType="GridViewColumnHeader">
<Setter Property="Background" Value="#50000000" />
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="GridViewColumnHeader">
<Grid>
<Border Name="HeaderBorder" BorderThickness="0" BorderBrush="#50000000" Background="#50000000" Padding="3">
<ContentPresenter Name="HeaderContent" TextElement.Foreground="White" Margin="0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</Border>
<Thumb x:Name="PART_HeaderGripper" HorizontalAlignment="Right" Margin="0" Style="{StaticResource GridViewColumnHeaderGripper}" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- scrollbar style -->
<Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}">
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="Focusable" Value="false" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Border Name="Border" Margin="1" CornerRadius="2" Background="#30FFFFFF" BorderBrush="Transparent" BorderThickness="1">
<Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="Black" Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsPressed" Value="true">
<Setter TargetName="Border" Property="Background" Value="#50ffffff" />
</Trigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Foreground" Value="Transparent" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}">
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="IsTabStop" Value="false" />
<Setter Property="Focusable" Value="false" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Border Background="Transparent" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="IsTabStop" Value="false" />
<Setter Property="Focusable" Value="false" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Thumb}">
<Border CornerRadius="2" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type ScrollBar}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition MaxHeight="18" />
<RowDefinition Height="0.00001*" />
<RowDefinition MaxHeight="18" />
</Grid.RowDefinitions>
<Border Grid.RowSpan="3" CornerRadius="2" Background="Transparent" />
<RepeatButton Grid.Row="0" Style="{StaticResource ScrollBarLineButton}" Height="18" Command="ScrollBar.LineUpCommand" Content="M 0 4 L 8 4 L 4 0 Z" />
<Track Name="PART_Track" Grid.Row="1" IsDirectionReversed="true">
<Track.DecreaseRepeatButton>
<RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageUpCommand" />
</Track.DecreaseRepeatButton>
<Track.Thumb>
<Thumb Style="{StaticResource ScrollBarThumb}" Margin="1,0,1,0" Background="#30FFFFFF" BorderBrush="Transparent" />
</Track.Thumb>
<Track.IncreaseRepeatButton>
<RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageDownCommand" />
</Track.IncreaseRepeatButton>
</Track>
<RepeatButton Grid.Row="3" Style="{StaticResource ScrollBarLineButton}" Height="18" Command="ScrollBar.LineDownCommand" Content="M 0 0 L 4 4 L 8 0 Z" />
</Grid>
</ControlTemplate>
<ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type ScrollBar}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition MaxWidth="18" />
<ColumnDefinition Width="0.00001*" />
<ColumnDefinition MaxWidth="18" />
</Grid.ColumnDefinitions>
<Border Grid.ColumnSpan="3" CornerRadius="2" Background="Transparent" />
<RepeatButton Grid.Column="0" Style="{StaticResource ScrollBarLineButton}" Width="18" Command="ScrollBar.LineLeftCommand" Content="M 4 0 L 4 8 L 0 4 Z" />
<Track Name="PART_Track" Grid.Column="1" IsDirectionReversed="False">
<Track.DecreaseRepeatButton>
<RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageLeftCommand" />
</Track.DecreaseRepeatButton>
<Track.Thumb>
<Thumb Style="{StaticResource ScrollBarThumb}" Margin="0,1,0,1" Background="#30FFFFFF" BorderBrush="Transparent" />
</Track.Thumb>
<Track.IncreaseRepeatButton>
<RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageRightCommand" />
</Track.IncreaseRepeatButton>
</Track>
<RepeatButton Grid.Column="3" Style="{StaticResource ScrollBarLineButton}" Width="18" Command="ScrollBar.LineRightCommand" Content="M 0 0 L 4 4 L 0 8 Z" />
</Grid>
</ControlTemplate>
<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="OverridesDefaultStyle" Value="true" />
<Style.Triggers>
<Trigger Property="Orientation" Value="Horizontal">
<Setter Property="Width" Value="Auto" />
<Setter Property="Height" Value="18" />
<Setter Property="Template" Value="{StaticResource HorizontalScrollBar}" />
</Trigger>
<Trigger Property="Orientation" Value="Vertical">
<Setter Property="Width" Value="18" />
<Setter Property="Height" Value="Auto" />
<Setter Property="Template" Value="{StaticResource VerticalScrollBar}" />
</Trigger>
</Style.Triggers>
</Style>
<!-- combobox style -->
<ControlTemplate x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
<ControlTemplate.Resources>
<Storyboard x:Key="HoverOn">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="HoverBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="HoverShineBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="HoverOff">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="HoverShineBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="HoverBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</ControlTemplate.Resources>
<Grid x:Name="grid">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="20" />
</Grid.ColumnDefinitions>
<Rectangle Grid.ColumnSpan="2" HorizontalAlignment="Stretch" x:Name="Rectangle" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Fill="Transparent" StrokeThickness="0" />
<Rectangle Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Fill="#50000000" StrokeThickness="0" />
<Border Margin="2,2,2,2" Grid.Column="1" Background="#30000000" x:Name="border" CornerRadius="2" />
<Border Margin="2,2,2,2" Background="#FF393939" x:Name="HoverBorder" CornerRadius="2" Grid.Column="1" Opacity="0" />
<Border Margin="2,2,2,2" Background="#ffffff" x:Name="HoverShineBorder" CornerRadius="2" Grid.Column="1" Opacity="0" />
<Path Grid.Column="1" HorizontalAlignment="Center" x:Name="Arrow" VerticalAlignment="Center" Fill="{x:Null}" Data="M0.5,0.5 L3,6.5 5.5,0.5" Stroke="Black" Margin="5,0,5,0" Height="7" StrokeThickness="2" Stretch="Fill" />
<Border Margin="2,2,2,2" Background="#00000000" x:Name="ShineBorder" CornerRadius="2" Grid.Column="1" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource HoverOff}" x:Name="HoverOff_BeginStoryboard"/>
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource HoverOn}"/>
</Trigger.EnterActions>
</Trigger>
<Trigger Property="IsChecked" Value="true" />
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="Transparent" />
<Setter Property="Stroke" TargetName="Arrow" Value="Transparent"/>
<Setter Property="Background" TargetName="border" Value="#AAA"/>
<Setter Property="Opacity" TargetName="grid" Value="0.8"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ControlTemplate x:Key="ComboBoxTextBox" TargetType="{x:Type TextBox}">
<Border x:Name="PART_ContentHost" Focusable="False" Background="{TemplateBinding Background}" />
<ControlTemplate.Triggers>
</ControlTemplate.Triggers>
</ControlTemplate>
<Style TargetType="{x:Type ComboBox}">
<Setter Property="Foreground" Value="#FFFFFFFF" />
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="Template" Value="{DynamicResource ComboBoxTemplate}" />
</Style>
<ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}">
<Grid x:Name="grid">
<ToggleButton Grid.Column="2" Template="{DynamicResource ComboBoxToggleButton}" x:Name="ToggleButton" Focusable="false" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press" />
<ContentPresenter HorizontalAlignment="Left" Margin="3,3,23,3" x:Name="ContentSite" VerticalAlignment="Center" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" IsHitTestVisible="False" />
<TextBox Visibility="Hidden" Template="{DynamicResource ComboBoxTextBox}" HorizontalAlignment="Left" Margin="3,3,23,3" x:Name="PART_EditableTextBox" Style="{x:Null}" VerticalAlignment="Center" Focusable="True" Background="Transparent" IsReadOnly="{TemplateBinding IsReadOnly}" BorderBrush="Transparent" Foreground="#FFFFFFFF" />
<Popup IsOpen="{TemplateBinding IsDropDownOpen}" Placement="Bottom" x:Name="Popup" Focusable="False" AllowsTransparency="True" PopupAnimation="Slide">
<Grid MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding ActualWidth}" x:Name="DropDown" SnapsToDevicePixels="True">
<Border x:Name="DropDownBorder" Background="#50000000" />
<ScrollViewer Margin="0" SnapsToDevicePixels="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" CanContentScroll="True" Foreground="{DynamicResource {x:Static SystemColors.ActiveCaptionTextBrushKey}}">
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" />
</ScrollViewer>
</Grid>
</Popup>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="HasItems" Value="false">
<Setter Property="MinHeight" Value="95" TargetName="DropDownBorder" />
</Trigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Foreground" Value="Transparent" />
<Setter Property="Opacity" TargetName="grid" Value="0.5" />
</Trigger>
<Trigger Property="IsGrouping" Value="true">
<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
</Trigger>
<Trigger Property="AllowsTransparency" SourceName="Popup" Value="true">
<Setter Property="Margin" Value="0,2,0,0" TargetName="DropDownBorder" />
</Trigger>
<Trigger Property="IsEditable" Value="true">
<Setter Property="IsTabStop" Value="false" />
<Setter Property="Visibility" Value="Visible" TargetName="PART_EditableTextBox" />
<Setter Property="Visibility" Value="Hidden" TargetName="ContentSite" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<Style TargetType="{x:Type ComboBoxItem}">
<Setter Property="Foreground" Value="#FFFFFFFF" />
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ComboBoxItem}">
<ControlTemplate.Resources>
<Storyboard x:Key="HoverOn">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="HoverRectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="HoverOff">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="HoverRectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="SelectedOn">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="SelectedRectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="SelectedOff">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="SelectedRectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</ControlTemplate.Resources>
<Grid SnapsToDevicePixels="true" Margin="0">
<Rectangle x:Name="Background" IsHitTestVisible="False" Opacity="0.25" Fill="#30000000" RadiusX="1" RadiusY="1" />
<Rectangle x:Name="HoverRectangle" IsHitTestVisible="False" Opacity="0" Fill="#30000000" RadiusX="1" RadiusY="1" />
<Rectangle x:Name="SelectedRectangle" IsHitTestVisible="False" Opacity="0" Fill="#50000000" RadiusX="1" RadiusY="1" />
<ContentPresenter Margin="5,2,0,2" x:Name="contentPresenter" VerticalAlignment="Center" />
<Rectangle x:Name="FocusVisualElement" Visibility="Collapsed" Stroke="#ffffff" StrokeThickness="1" RadiusX="1" RadiusY="1" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsHighlighted" Value="true">
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource SelectedOff}" x:Name="SelectedOff_BeginStoryboard"/>
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource SelectedOn}" x:Name="SelectedOn_BeginStoryboard"/>
</Trigger.EnterActions>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource HoverOff}" x:Name="HoverOff_BeginStoryboard"/>
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource HoverOn}"/>
</Trigger.EnterActions>
</Trigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Foreground" Value="Transparent" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- checkbox style -->
<Style TargetType="{x:Type CheckBox}">
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="FocusVisualStyle" Value="{DynamicResource CheckBoxFocusVisual}" />
<Setter Property="Background" Value="#30000000" />
<Setter Property="Foreground" Value="#FFFFFFFF" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Template" Value="{DynamicResource CheckBoxTemplate}" />
</Style>
<Style x:Key="CheckBoxFocusVisual">
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<Border>
<Rectangle Margin="15,0,0,0" Stroke="#60000000" StrokeThickness="1" StrokeDashArray="1 2" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ControlTemplate x:Key="CheckBoxTemplate" TargetType="{x:Type CheckBox}">
<ControlTemplate.Resources>
<Storyboard x:Key="HoverOn">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="BackgroundOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="HoverOff">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="BackgroundOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="PressedOn">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PressedRectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="PressedOff">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PressedRectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="CheckedTrue">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="CheckedFalse">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="IndeterminateOn">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="IndeterminateIcon" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="IndeterminateOff">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="IndeterminateIcon" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="FocussedOn">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="FocussedOff">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</ControlTemplate.Resources>
<BulletDecorator Background="Transparent" x:Name="bulletDecorator">
<BulletDecorator.Bullet>
<Grid Width="16" Height="16">
<Rectangle Height="14" Margin="1" x:Name="Background" Width="14" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" />
<Rectangle Height="14" Margin="1" x:Name="BackgroundOverlay" Width="14" Opacity="0" Fill="{x:Null}" Stroke="#FF393939" StrokeThickness="2" />
<Rectangle Height="16" x:Name="PressedRectangle" Width="16" IsHitTestVisible="false" Opacity="0" Stroke="#FF393939" StrokeThickness="1" />
<Path Height="10" Margin="1,1,0,1.5" x:Name="CheckIcon" Width="10.5" Opacity="0" Fill="#FFFFFF" Stretch="Fill" Data="M102.03442,598.79645 L105.22962,597.78918 L106.78825,600.42358 C106.78825,600.42358 108.51028,595.74304 110.21724,593.60419 C112.00967,591.35822 114.89314,591.42316 114.89314,591.42316 C114.89314,591.42316 112.67844,593.42645 111.93174,594.44464 C110.7449,596.06293 107.15683,604.13837 107.15683,604.13837 z" />
<Rectangle Height="8" x:Name="IndeterminateIcon" Width="10" Opacity="0" Fill="Black" />
<Rectangle Height="14" x:Name="DisabledVisualElement" Width="14" Opacity="0" Fill="#FF787878" />
<Rectangle Height="16" x:Name="ContentFocusVisualElement" Width="16" IsHitTestVisible="false" Opacity="0" Stroke="#ffffff" StrokeThickness="1" />
<Rectangle Height="12" x:Name="ShineRectangle" Width="14" IsHitTestVisible="false" Opacity="1" Stroke="{x:Null}" StrokeThickness="1" Fill="#00000000" Margin="2,2,2,2" />
</Grid>
</BulletDecorator.Bullet>
<ContentPresenter RecognizesAccessKey="True" Margin="5,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
</BulletDecorator>
<ControlTemplate.Triggers>
<Trigger Property="IsFocused" Value="True">
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource FocussedOff}" x:Name="FocussedOff_BeginStoryboard" />
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource FocussedOn}" x:Name="FocussedOn_BeginStoryboard" />
</Trigger.EnterActions>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsChecked" Value="True" />
<Condition Property="IsThreeState" Value="True" />
</MultiTrigger.Conditions>
<MultiTrigger.EnterActions>
<BeginStoryboard x:Name="ThreeStateOn_BeginStoryboard" Storyboard="{StaticResource CheckedFalse}" />
</MultiTrigger.EnterActions>
<MultiTrigger.ExitActions>
<BeginStoryboard x:Name="ThreeStateOff_BeginStoryboard" Storyboard="{StaticResource CheckedTrue}" />
</MultiTrigger.ExitActions>
</MultiTrigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsChecked" Value="{x:Null}" />
<Condition Property="IsThreeState" Value="True" />
</MultiTrigger.Conditions>
<MultiTrigger.EnterActions>
<BeginStoryboard x:Name="ThreeStateOn1_BeginStoryboard" Storyboard="{StaticResource IndeterminateOn}" />
</MultiTrigger.EnterActions>
<MultiTrigger.ExitActions>
<BeginStoryboard x:Name="ThreeStateOff1_BeginStoryboard" Storyboard="{StaticResource IndeterminateOff}" />
</MultiTrigger.ExitActions>
<Setter Property="Visibility" TargetName="CheckIcon" Value="Hidden" />
</MultiTrigger>
<Trigger Property="IsChecked" Value="True">
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource CheckedFalse}" x:Name="CheckedTrue_BeginStoryboard" />
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard x:Name="CheckedTrue_BeginStoryboard1" Storyboard="{StaticResource CheckedTrue}" />
</Trigger.EnterActions>
</Trigger>
<Trigger Property="IsMouseOver" Value="true">
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource HoverOn}" />
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource HoverOff}" />
</Trigger.ExitActions>
</Trigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Fill" Value="#FF787878" TargetName="Background" />
<Setter Property="Stroke" Value="#AAA" TargetName="Background" />
<Setter Property="Foreground" Value="Transparent" />
<Setter Property="Opacity" TargetName="bulletDecorator" Value="0.5" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<!-- textbox style -->
<Style TargetType="{x:Type TextBox}">
<Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="AllowDrop" Value="true" />
<Setter Property="Template" Value="{DynamicResource TextBoxTemplate}" />
<Setter Property="Foreground" Value="#FFFFFFFF" />
<Setter Property="Background" Value="#50000000"/>
<Setter Property="BorderBrush" Value="Transparent"/>
</Style>
<ControlTemplate x:Key="TextBoxTemplate" TargetType="{x:Type TextBox}">
<Grid>
<Border x:Name="Border" Opacity="1" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" Background="{TemplateBinding Background}">
<Grid>
<Border BorderThickness="1" Padding="0,2,0,0">
<ScrollViewer Margin="0" x:Name="PART_ContentHost" />
</Border>
</Grid>
</Border>
</Grid>
</ControlTemplate>
</Window.Resources>
<Border BorderThickness="1" Name="mainBorder" CornerRadius="6" Padding="5">
<Grid>
<!-- logo menu -->
<Menu Name="logoMenu" IsMainMenu="True" Margin="7,-1,0,0" Padding="0" Width="157" HorizontalAlignment="Left" VerticalAlignment="Top">
<MenuItem Header="Main menu" Name="logoMenuItem" SubmenuOpened="LogoMenuItemSubmenuOpened" SubmenuClosed="LogoMenuItemSubmenuClosed">
<MenuItem Header="Add new TV show" Click="AddNewTVShowClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/plus.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Update database" Click="UpdateDatabaseClick" Name="UpdateDatabase">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/refresh.png" GreyableImage:ImageGreyer.IsGreyable="True" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Re-index d/l paths" Click="ReindexDownloadPathsClick" Name="ReindexDownloadPaths" IsEnabled="False">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/magnifier.png" GreyableImage:ImageGreyer.IsGreyable="True" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Configure software" Click="ConfigureSoftwareClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/settings.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Rename video files" Click="RenameVideoFilesClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/folder-rename.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Social networks" Click="SocialNetworksClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/bird.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Open help page" Click="OpenHelpPageClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/question.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Send feedback" Click="SendFeedbackClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/mail-pencil.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Click="SupportSoftwareClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/heart.png" />
</MenuItem.Icon>
<MenuItem.Header>
<StackPanel Orientation="Horizontal" Margin="0,0,-100,0">
<Label Padding="0">Support the software</Label>
<Image Name="supportArrow" Source="/RSTVShowTracker;component/Images/smiley.png" Height="16" Width="16" Margin="30,0,0,0" />
</StackPanel>
</MenuItem.Header>
</MenuItem>
<MenuItem Header="About the software" Click="AboutSoftwareClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/information.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="View software logs" Click="ViewSoftwareLogsClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/log.png" Height="16" Width="16" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Minimize to tray" Click="MinimizeToTrayClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/minimize.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Exit software" Click="ExitSoftwareClick">
<MenuItem.Icon>
<Image Source="/RSTVShowTracker;component/Images/cross.png" />
</MenuItem.Icon>
</MenuItem>
</MenuItem>
</Menu>
<!-- logo -->
<Border Name="logo" Cursor="Hand" Shell:WindowChrome.IsHitTestVisibleInChrome="True" Margin="5,-5,0,0" Padding="1" Width="160" MaxWidth="160" HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="0" BorderBrush="Transparent" CornerRadius="0,0,4,4" Background="{StaticResource HeadGradient}" MouseLeftButtonUp="LogoMouseLeftButtonUp" MouseEnter="LogoMouseEnter" MouseLeave="LogoMouseLeave">
<Grid>
<Rectangle Fill="{StaticResource HeadGradientBusy}" Width="160" HorizontalAlignment="Left" Name="progressRectangle" Opacity="0" Margin="0" />
<Image Name="logoImage" Source="/RSTVShowTracker;component/Images/tv.png" Height="16" Width="16" HorizontalAlignment="Left" Margin="8,-3,0,0"></Image>
<Label Name="logoLabel" TextOptions.TextFormattingMode="Ideal" TextOptions.TextRenderingMode="Grayscale" HorizontalAlignment="Left" Foreground="White" Content="RS TV Show Tracker v2" Padding="30,4,8,6">
<Label.Effect>
<DropShadowEffect BlurRadius="5" Color="Gray" Direction="316" ShadowDepth="2" />
</Label.Effect>
</Label>
</Grid>
</Border>
<Label Name="lastUpdatedLabel" TextOptions.TextFormattingMode="Ideal" TextOptions.TextRenderingMode="Grayscale" HorizontalAlignment="Left" Foreground="White" Content="last updated label" Margin="165,-6,0,0">
<Label.Effect>
<DropShadowEffect BlurRadius="5" Color="Black" Direction="0" ShadowDepth="0" />
</Label.Effect>
</Label>
<!-- update -->
<Border Name="updateOuter" Margin="0,-5,106,0" Shell:WindowChrome.IsHitTestVisibleInChrome="True" HorizontalAlignment="Right" VerticalAlignment="Top" BorderThickness="1,0,1,1" BorderBrush="#7DFFFFFF" CornerRadius="0,0,4,4" MouseLeftButtonUp="UpdateMouseLeftButtonUp" MouseEnter="UpdateMouseEnter" MouseLeave="UpdateMouseLeave" Visibility="Collapsed">
<Border Name="update" BorderThickness="1,0,1,1" BorderBrush="DimGray" CornerRadius="0,0,4,4" Background="{StaticResource UpdateGradient}">
<Border.ToolTip>
<StackPanel Orientation="Vertical">
<TextBlock Name="updateToolTipTitle" FontWeight="Bold" />
<TextBlock Name="updateToolTipText" TextWrapping="Wrap" />
</StackPanel>
</Border.ToolTip>
<Grid>
<Label FontSize="11" HorizontalAlignment="Left" Foreground="White" Content="New version available!" Name="updateLabel" Padding="6,2" Height="18">
<Label.Effect>
<DropShadowEffect BlurRadius="5" Color="Gray" Direction="316" ShadowDepth="0" />
</Label.Effect>
</Label>
</Grid>
</Border>
</Border>
<!-- tabs -->
<TabControl Name="tabControl" Background="#82000000" BorderBrush="Transparent" Margin="0,25,0,6" BorderThickness="0" FocusVisualStyle="{x:Null}">
<!-- overview -->
<TabItem Name="overviewTab" Style="{StaticResource MainTabItem}">
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<Image Source="/RSTVShowTracker;component/Images/overview.png" Margin="0,-3,5,0" Height="16" Width="16"></Image>
<TextBlock Style="{StaticResource TabItemText}" Text="Overview">
<TextBlock.Effect>
<DropShadowEffect Color="Black" Direction="0" ShadowDepth="0" BlurRadius="5" />
</TextBlock.Effect>
</TextBlock>
</StackPanel>
</TabItem.Header>
<TVShowTracker:OverviewPage x:Name="activeOverviewPage" Margin="-4" />
</TabItem>
<!-- guides -->
<TabItem Name="guidesTab" Style="{StaticResource MainTabItem}">
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<Image Source="/RSTVShowTracker;component/Images/guides.png" Margin="0,-1,5,0" Height="16" Width="16"></Image>
<TextBlock Style="{StaticResource TabItemText}" Text="Guides">
<TextBlock.Effect>
<DropShadowEffect Color="Black" Direction="0" ShadowDepth="0" BlurRadius="5" />
</TextBlock.Effect>
</TextBlock>
</StackPanel>
</TabItem.Header>
<TVShowTracker:GuidesPage x:Name="activeGuidesPage" Margin="-4" />
</TabItem>
<!-- downloads-->
<TabItem Name="downloadsTab" Style="{StaticResource MainTabItem}">
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<Image Source="/RSTVShowTracker;component/Images/torrents.png" Margin="0,-3,5,0" Height="16" Width="16"></Image>
<TextBlock Style="{StaticResource TabItemText}" Text="Downloads">
<TextBlock.Effect>
<DropShadowEffect Color="Black" Direction="0" ShadowDepth="0" BlurRadius="5" />
</TextBlock.Effect>
</TextBlock>
</StackPanel>
</TabItem.Header>
<TVShowTracker:DownloadLinksPage x:Name="activeDownloadLinksPage" Margin="-4" />
</TabItem>
<!-- subtitles -->
<TabItem Name="subtitlesTab" Style="{StaticResource MainTabItem}">
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<Image Source="/RSTVShowTracker;component/Images/subtitles.png" Margin="0,-3,5,0" Height="16" Width="16"></Image>
<TextBlock Style="{StaticResource TabItemText}" Text="Subtitles">
<TextBlock.Effect>
<DropShadowEffect Color="Black" Direction="0" ShadowDepth="0" BlurRadius="5" />
</TextBlock.Effect>
</TextBlock>
</StackPanel>
</TabItem.Header>
<TVShowTracker:SubtitlesPage x:Name="activeSubtitlesPage" Margin="-4" />
</TabItem>
<!-- statistics -->
<TabItem Name="statisticsTab" Style="{StaticResource MainTabItem}">
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<Image Source="/RSTVShowTracker;component/Images/statistics.png" Margin="0,-3,5,0" Height="16" Width="16"></Image>
<TextBlock Style="{StaticResource TabItemText}" Text="Statistics">
<TextBlock.Effect>
<DropShadowEffect Color="Black" Direction="0" ShadowDepth="0" BlurRadius="5" />
</TextBlock.Effect>
</TextBlock>
</StackPanel>
</TabItem.Header>
<TVShowTracker:StatisticsPage x:Name="activeStatisticsPage" Margin="-4" />
</TabItem>
<!-- recommendations -->
<TabItem Name="recommendationsTab" Style="{StaticResource MainTabItem}">
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<Image Source="/RSTVShowTracker;component/Images/information.png" Margin="0,-3,5,0" Height="16" Width="16"></Image>
<TextBlock Style="{StaticResource TabItemText}" Text="Recommendations">
<TextBlock.Effect>
<DropShadowEffect Color="Black" Direction="0" ShadowDepth="0" BlurRadius="5" />
</TextBlock.Effect>
</TextBlock>
</StackPanel>
</TabItem.Header>
<TVShowTracker:RecommendationsPage x:Name="activeRecommendationsPage" Margin="-4" />
</TabItem>
</TabControl>
<!-- bottom -->
<Border BorderThickness="0,0,0,0" CornerRadius="0,0,6,6" Height="6" Background="#82000000" VerticalAlignment="Bottom" />
</Grid>
</Border>
</Window>