mekasu0124

Untitled

Oct 18th, 2023
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.86 KB | None | 0 0
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2.             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3.             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4.             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5.              xmlns:vm="using:MeksMathGame.ViewModels"
  6.             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7.             x:Class="MeksMathGame.Views.HomeScreenView"
  8.              x:DataType="vm:HomeScreenViewModel"
  9.              Background="{DynamicResource ResourceKey=Purple}">
  10.  
  11.     <Design.DataContext>
  12.         <vm:HomeScreenViewModel />
  13.     </Design.DataContext>
  14.  
  15.     <UserControl.Styles>
  16.         <StyleInclude Source="/Styles/HomeScreenStyles.axaml" />
  17.     </UserControl.Styles>
  18.  
  19.     <Grid ColumnDefinitions="*,*">
  20.         <Border Classes="HomeBorder" Grid.Column="0">
  21.             <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto">
  22.                 <TextBlock Classes="HomeText" Grid.Row="0" Text="{Binding Information}" />
  23.  
  24.                 <Label Classes="HomeText" Grid.Row="1" Content="Select Difficulty" />
  25.  
  26.                 <ComboBox Name="cmbSelect"
  27.                             Classes="HomeCombo"
  28.                             Grid.Row="2"
  29.                             ItemsSource="{Binding Difficulties}"
  30.                             SelectedItem="{Binding SelectedDiff}"
  31.                             SelectedIndex="0">
  32.                     <ComboItem>Select One</ComboItem>
  33.                 </ComboBox>
  34.  
  35.                 <Label Classes="HomeText"
  36.                        Grid.Row="3"
  37.                        Content="Select Number Of Questions To Answer" />
  38.  
  39.                 <ComboBox Name="maxQuesSelect"
  40.                           Classes="HomeCombo"
  41.                           Grid.Row="4"
  42.                           ItemsSource="{Binding NumberRange}"
  43.                           SelectedItem="{Binding MaxQues}" />
  44.             </Grid>
  45.         </Border>
  46.  
  47.         <Border Classes="HomeBorder" Grid.Column="1">
  48.             <Grid RowDefinitions="*,*,*,*,*,*,*">
  49.                 <Button Classes="HomeButton"
  50.                         Grid.Row="0"
  51.                         Content="local:GameType.Addition"
  52.                         Command="{Binding Play}"
  53.                         CommandParameter="Addition"/>
  54.  
  55.                 <Button Classes="HomeButton"
  56.                         Grid.Row="1"
  57.                         Content="local:GameType.Subtraction"
  58.                         Command="{Binding Play}"
  59.                         CommandParameter="Subtraction"/>
  60.  
  61.                 <Button Classes="HomeButton"
  62.                         Grid.Row="2"
  63.                         Content="local:GameType.Multiplication"
  64.                         Command="{Binding Play}"
  65.                         CommandParameter="Multiplication"/>
  66.  
  67.                 <Button Classes="HomeButton"
  68.                         Grid.Row="3"
  69.                         Content="local:GameType.Division"
  70.                         Command="{Binding Play}"
  71.                         CommandParameter="Division"/>
  72.  
  73.                 <Button Classes="HomeButton"
  74.                         Grid.Row="4"
  75.                         Content="local:GameType.Random"
  76.                         Command="{Binding Play}"
  77.                         CommandParameter="Random"/>
  78.  
  79.                 <Button Classes="HomeButton"
  80.                         Grid.Row="5"
  81.                         Content="Previous Games"
  82.                         Command="{Binding PreviousGames}"
  83.                         CommandParameter="Previous Games" />
  84.  
  85.                 <Button Classes="HomeButton"
  86.                         Grid.Row="6"
  87.                         Content="Back"
  88.                         Command="{Binding BackButton}"
  89.                         CommandParameter="Back Button" />
  90.             </Grid>
  91.         </Border>
  92.     </Grid>
  93. </UserControl>
  94.  
Advertisement
Add Comment
Please, Sign In to add comment