-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
36 lines (34 loc) · 2.7 KB
/
MainWindow.xaml
File metadata and controls
36 lines (34 loc) · 2.7 KB
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
<Window x:Name="readtime" x:Class="speedchecker.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:speedchecker"
mc:Ignorable="d"
Title="WPM_Calculator" Height="441" Width="804">
<Grid Background="#FF88E043">
<ListBox x:Name="ArticleList" HorizontalAlignment="Left" Height="331" Margin="41,53,0,0" VerticalAlignment="Top" Width="474">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Margin="0,2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="370"/>
<ColumnDefinition Width="80"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="{Binding title}" />
<TextBlock Grid.Column="1" Text="{Binding words}" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate> />
</ListBox>
<Label Content="Choose the article you read" HorizontalAlignment="Left" Margin="139,16,0,0" VerticalAlignment="Top" Width="239" Background="#FF007AFF" FontSize="14" FontWeight="Bold"/>
<Label Content="Input Minute and Second" HorizontalAlignment="Left" Height="26" Margin="574,17,0,0" VerticalAlignment="Top" Width="182" Background="#FF007AFF" FontSize="14" FontWeight="Bold"/>
<TextBox x:Name="InputMinute" HorizontalAlignment="Left" Margin="584,53,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="64" Text="Min" />
<TextBox x:Name="WpmTB" HorizontalAlignment="Left" Margin="584,163,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="145"/>
<Label Content="Word Per Minute" HorizontalAlignment="Left" Margin="584,132,0,0" VerticalAlignment="Top" Width="145" Background="#FF007AFF" FontSize="14" FontWeight="Bold"/>
<Button x:Name="CalculateButton" Content="Calculate" HorizontalAlignment="Left" Height="21" Margin="582,94,0,0" VerticalAlignment="Top" Width="145" Click="CalculateButton_Click" Background="#FFF7BA5F"/>
<TextBox x:Name="InputSecond" HorizontalAlignment="Left" Margin="664,53,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="64" Text="Second" />
<Label Content=":" HorizontalAlignment="Left" Margin="650,45,0,0" VerticalAlignment="Top"/>
<TextBox x:Name="FeedbackTB" HorizontalAlignment="Left" Height="54" Margin="548,330,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="235"/>
</Grid>
</Window>