-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
78 lines (78 loc) · 3.14 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
<Window x:Class="ScheduleRevealTool.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:ScheduleRevealTool"
mc:Ignorable="d"
Title="Schedule Reveal Tool"
ResizeMode="NoResize" SizeToContent="WidthAndHeight">
<Window.Resources>
<local:ClockTicker x:Key="ClockTicker" />
<Style x:Key="BlackShadowStyle" TargetType="{x:Type TextBlock}">
<Style.Resources>
<DropShadowEffect
x:Key="dropShadowEffect"
ShadowDepth="4"
Direction="320"
Color="Black"
Opacity="1"
BlurRadius="15"
RenderingBias="Quality" />
</Style.Resources>
<Setter Property="Effect" Value="{StaticResource dropShadowEffect}" />
<Setter Property="FontFamily" Value="{StaticResource BarlowMedium}" />
<Setter Property="FontSize" Value="45" />
<Setter Property="Foreground" Value="White" />
</Style>
</Window.Resources>
<Canvas Width="1920" Height="1080">
<Canvas.Background>
<ImageBrush Stretch="UniformToFill" ImageSource="background.png" />
</Canvas.Background>
<ScrollViewer
Canvas.Top="50"
Canvas.Left="800"
Height="910"
Width="1000"
VerticalScrollBarVisibility="Hidden"
HorizontalScrollBarVisibility="Hidden"
Name="MainCardsScroll">
<StackPanel Name="MainCardsStack">
</StackPanel>
</ScrollViewer>
<local:RunRevealControl
Canvas.Left="40"
Canvas.Top="375"
x:Name="NextRunControl" />
<Viewbox
Canvas.Left="1806" Width="114"
Canvas.Top="1000" Height="80"
StretchDirection="DownOnly" Stretch="Uniform">
<TextBlock
Text="{Binding Source={StaticResource ClockTicker}, Path=Now, Mode=OneWay, StringFormat='HH:mm'}"
Style="{StaticResource BlackShadowStyle}" />
</Viewbox>
<Viewbox
Canvas.Top="1000" Height="80"
Canvas.Left="412" Width="1377"
StretchDirection="DownOnly" Stretch="Uniform">
<TextBlock
Name="OmnibarTextBox"
Style="{StaticResource BlackShadowStyle}">
</TextBlock>
</Viewbox>
<Viewbox
Name="CountdownViewBox"
Canvas.Top="350" Height="325"
Canvas.Left="1000" Width="500"
HorizontalAlignment="Left"
StretchDirection="DownOnly" Stretch="Uniform">
<TextBlock
Name="CountdownTextBox"
Style="{StaticResource BlackShadowStyle}"
FontSize="220"
Text="15:00"/>
</Viewbox>
</Canvas>
</Window>