-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
29 lines (29 loc) · 1.6 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
<Window x:Class="BeatMaker.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:BeatMaker"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="50"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Button Content="Find Song" Grid.Column="0" Grid.Row="0" Name="find" Click="find_Click"/>
<TextBlock TextWrapping="WrapWithOverflow" Grid.Row="0" Grid.Column="1" Name="locationField"/>
<TextBlock TextWrapping="WrapWithOverflow" Text="Play song after 5 second countdown. The text field below will be given focus. Type keys to see time elapsed since the start of the song." Grid.Column="0" Grid.Row="1"/>
<Button Content="Play" Grid.Column="1" Grid.Row="1" Click="Button_Click" />
<TextBox Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Name="input" KeyDown="input_KeyDown" KeyUp="input_KeyUp"/>
<ScrollViewer Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2">
<TextBlock Name="output" TextWrapping="WrapWithOverflow"/>
</ScrollViewer>
</Grid>
</Window>