HomeView.axaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. x:Class="HelloItQuantum.Views.HomeView"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:HelloItQuantum.ViewModels">
  9. <UserControl.Styles>
  10. <Style Selector="Button">
  11. <Setter Property="FontFamily" Value="{StaticResource BankGothicMediumRUS}"/>
  12. <Setter Property="FontSize" Value="40"/>
  13. <Setter Property="Foreground" Value="White"/>
  14. <Setter Property="CornerRadius" Value="20"/>
  15. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  16. <Setter Property="VerticalContentAlignment" Value="Center"/>
  17. <Setter Property="VerticalAlignment" Value="Stretch"/>
  18. <Setter Property="HorizontalAlignment" Value="Stretch"/>
  19. </Style>
  20. </UserControl.Styles>
  21. <Panel>
  22. <Image Source="/Assets/ImgHomeView/bg.png" Stretch="Fill"/>
  23. <Grid ColumnDefinitions="1*,3*,1*,3*,1*" RowDefinitions="1*,6*,20,5*,20,3*,*" Height="{Binding $parent[Panel].Bounds.Height}">
  24. <StackPanel Grid.Column="1" Grid.RowSpan="7" VerticalAlignment="Center" HorizontalAlignment="Stretch">
  25. <Image Source="/Assets/ImgHomeView/logoIT.png" MaxWidth="600"/>
  26. </StackPanel>
  27. <Border Grid.Column="3" Grid.Row="1" CornerRadius="20" Background="#006838" BoxShadow="0 5 #013E21" HorizontalAlignment="Stretch">
  28. <Button Content="Играть" Command="{Binding HomeVM.ClickPlay}" CornerRadius="20"/>
  29. </Border>
  30. <Border Grid.Column="3" Grid.Row="3" CornerRadius="20" Background="#F26527" BoxShadow="0 5 #753417" HorizontalAlignment="Stretch">
  31. <Button Content="Прогресс" Command="{Binding HomeVM.ClickStatistic}" CornerRadius="20"/>
  32. </Border>
  33. <Border Grid.Column="3" Grid.Row="5" CornerRadius="20" Background="#B21E22" BoxShadow="0 5 #470C0D" HorizontalAlignment="Stretch">
  34. <Button Content="Выйти" Command="{Binding HomeVM.ClickExit}" CornerRadius="20"/>
  35. </Border>
  36. </Grid>
  37. </Panel>
  38. </UserControl>