Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl xmlns="https://github.com/avaloniaui"
- 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:vm="using:MeksMathGame.ViewModels"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="MeksMathGame.Views.HomeScreenView"
- x:DataType="vm:HomeScreenViewModel"
- Background="{DynamicResource ResourceKey=Purple}">
- <Design.DataContext>
- <vm:HomeScreenViewModel />
- </Design.DataContext>
- <UserControl.Styles>
- <StyleInclude Source="/Styles/HomeScreenStyles.axaml" />
- </UserControl.Styles>
- <Grid ColumnDefinitions="*,*">
- <Border Classes="HomeBorder" Grid.Column="0">
- <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto">
- <TextBlock Classes="HomeText" Grid.Row="0" Text="{Binding Information}" />
- <Label Classes="HomeText" Grid.Row="1" Content="Select Difficulty" />
- <ComboBox Name="cmbSelect"
- Classes="HomeCombo"
- Grid.Row="2"
- ItemsSource="{Binding Difficulties}"
- SelectedItem="{Binding SelectedDiff}"
- SelectedIndex="0">
- <ComboItem>Select One</ComboItem>
- </ComboBox>
- <Label Classes="HomeText"
- Grid.Row="3"
- Content="Select Number Of Questions To Answer" />
- <ComboBox Name="maxQuesSelect"
- Classes="HomeCombo"
- Grid.Row="4"
- ItemsSource="{Binding NumberRange}"
- SelectedItem="{Binding MaxQues}" />
- </Grid>
- </Border>
- <Border Classes="HomeBorder" Grid.Column="1">
- <Grid RowDefinitions="*,*,*,*,*,*,*">
- <Button Classes="HomeButton"
- Grid.Row="0"
- Content="local:GameType.Addition"
- Command="{Binding Play}"
- CommandParameter="Addition"/>
- <Button Classes="HomeButton"
- Grid.Row="1"
- Content="local:GameType.Subtraction"
- Command="{Binding Play}"
- CommandParameter="Subtraction"/>
- <Button Classes="HomeButton"
- Grid.Row="2"
- Content="local:GameType.Multiplication"
- Command="{Binding Play}"
- CommandParameter="Multiplication"/>
- <Button Classes="HomeButton"
- Grid.Row="3"
- Content="local:GameType.Division"
- Command="{Binding Play}"
- CommandParameter="Division"/>
- <Button Classes="HomeButton"
- Grid.Row="4"
- Content="local:GameType.Random"
- Command="{Binding Play}"
- CommandParameter="Random"/>
- <Button Classes="HomeButton"
- Grid.Row="5"
- Content="Previous Games"
- Command="{Binding PreviousGames}"
- CommandParameter="Previous Games" />
- <Button Classes="HomeButton"
- Grid.Row="6"
- Content="Back"
- Command="{Binding BackButton}"
- CommandParameter="Back Button" />
- </Grid>
- </Border>
- </Grid>
- </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment