53 lines
2.3 KiB
XML
53 lines
2.3 KiB
XML
<UserControl
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:EinmaleinsTrainer.ViewModels"
|
|
x:Class="EinmaleinsTrainer.Views.MainView"
|
|
x:DataType="vm:MainViewModel">
|
|
|
|
<Grid>
|
|
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Spacing="10" Margin="20">
|
|
|
|
<TextBlock FontSize="32" Text="Einmaleins Trainer"/>
|
|
|
|
<WrapPanel>
|
|
<CheckBox FontSize="24" Content="1" IsChecked="{Binding IsRow1Checked}" Width="60" />
|
|
<CheckBox FontSize="24" Content="2" IsChecked="{Binding IsRow2Checked}" Width="60" />
|
|
<CheckBox FontSize="24" Content="3" IsChecked="{Binding IsRow3Checked}" Width="60" />
|
|
<CheckBox FontSize="24" Content="4" IsChecked="{Binding IsRow4Checked}" Width="60" />
|
|
<CheckBox FontSize="24" Content="5" IsChecked="{Binding IsRow5Checked}" Width="60" />
|
|
</WrapPanel>
|
|
|
|
<WrapPanel>
|
|
<CheckBox FontSize="24" Content="6" IsChecked="{Binding IsRow6Checked}" Width="60" />
|
|
<CheckBox FontSize="24" Content="7" IsChecked="{Binding IsRow7Checked}" Width="60" />
|
|
<CheckBox FontSize="24" Content="8" IsChecked="{Binding IsRow8Checked}" Width="60" />
|
|
<CheckBox FontSize="24" Content="9" IsChecked="{Binding IsRow9Checked}" Width="60" />
|
|
<CheckBox FontSize="24" Content="10" IsChecked="{Binding IsRow10Checked}" Width="60" />
|
|
</WrapPanel>
|
|
|
|
<CheckBox FontSize="24" Content="Quadratzahlen" IsChecked="{Binding IncludeSquares}" />
|
|
|
|
<WrapPanel>
|
|
<Grid Height="44">
|
|
<CheckBox FontSize="24" Content="Zeitlimit" VerticalAlignment="Center"
|
|
IsChecked="{Binding UseTimer}" Width="140"/>
|
|
</Grid>
|
|
|
|
<NumericUpDown Minimum="2" Maximum="120" FontSize="24" Value="{Binding SecondsPerQuestion, Mode=TwoWay}" Width="140" FormatString="F0" ParsingNumberStyle="Integer" IsVisible="{Binding UseTimer}" />
|
|
|
|
<Grid Height="40">
|
|
<TextBlock FontSize="24" Text=" s" VerticalAlignment="Center" IsVisible="{Binding UseTimer}" />
|
|
</Grid>
|
|
</WrapPanel>
|
|
|
|
<StackPanel HorizontalAlignment="Center" >
|
|
<Button FontSize="24" Content="Start" IsDefault="True"
|
|
Command="{Binding StartCommand}" />
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
</UserControl>
|