-
Notifications
You must be signed in to change notification settings - Fork 0
/
ControlWindow.xaml
74 lines (68 loc) · 3.79 KB
/
ControlWindow.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
<Window x:Class="ScheduleRevealTool.ControlWindow"
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 - Controls" Height="900" Width="1000"
x:Name="ControlWindowRoot">
<Window.Resources>
<Style x:Key="SeparatorStyle" TargetType="{x:Type Border}">
<Setter Property="BorderThickness" Value="1,0,0,0"/>
<Setter Property="BorderBrush" Value="#FFC5C5C5"/>
<Setter Property="Margin" Value="10,0,10,0"/>
<Setter Property="Width" Value="2"/>
<Setter Property="Background" Value="White"/>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<DockPanel Grid.Row="0" Grid.Column="0">
<Menu DockPanel.Dock="Top">
<MenuItem Header="_File">
<MenuItem Header="_Load Schedule" Click="LoadSchedule_Click" />
<Separator />
<MenuItem Header="_Exit" Click="MenuItem_Click" />
</MenuItem>
</Menu>
</DockPanel>
<DataGrid
Grid.Row="1"
Grid.Column="0"
Name="RunDataGrid"
ItemsSource="{Binding RunCollection, ElementName=ControlWindowRoot, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
CanUserDeleteRows="False"
CanUserAddRows="False"
CanUserSortColumns="False"
AutoGenerateColumns="True" />
<StackPanel Grid.Row="2" Grid.Column="0">
<Button Click="PresentNextRun_Click" Content="Present Next Run" />
<StackPanel Orientation="Horizontal">
<Label>Timer:</Label>
<TextBox MinWidth="25" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Text="0" Name="TimerInputText" PreviewTextInput="PreviewIntegerEnforce" TextChanged="TimerInputText_TextChanged" />
<Label Name="TimerStatusLabel">Stopped</Label>
<Button Click="StopTimer_Click">Stop</Button>
<Border Style="{StaticResource SeparatorStyle}" />
<Label>Animation Speed:</Label>
<TextBox MinWidth="25" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Text="1" Name="SpeedInputText" PreviewTextInput="PreviewDoubleEnforce" TextChanged="SpeedInputText_TextChanged" />
<Border Style="{StaticResource SeparatorStyle}" />
<Button Click="ScrollOverList_Click">Scroll over List</Button>
<Label>Duration:</Label>
<TextBox MinWidth="25" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Text="120" Name="ScrollDurationText" PreviewTextInput="PreviewIntegerEnforce" />
<Border Style="{StaticResource SeparatorStyle}" />
<Label>Countdown:</Label>
<TextBox MinWidth="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Text="900" Name="CountdownTimerText" PreviewTextInput="PreviewIntegerEnforce" />
<Button Click="StartCountdown_Click">Start</Button>
</StackPanel>
<DockPanel LastChildFill="True">
<Label>Omnibar Text:</Label>
<TextBox VerticalContentAlignment="Center" Name="OmnibarTextBox" KeyUp="OmnibarTextBox_KeyUp" />
</DockPanel>
</StackPanel>
</Grid>
</Window>