ProgressView.axaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.ProgressView"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:HelloItQuantum.ViewModels"
  9. Background="#CCD7EB">
  10. <UserControl.Styles>
  11. <Style Selector="TextBlock">
  12. <Setter Property="FontFamily" Value="{StaticResource BankGothicMediumRUS}" />
  13. </Style>
  14. </UserControl.Styles>
  15. <Panel HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  16. <Button Command="{Binding ProgressVM.GoBack}" Width="50" Height="50" VerticalAlignment="Top" CornerRadius="10000" Padding="1" Margin="20 20 0 0">
  17. <Image Source="/Assets/КнопкаНазад.png"/>
  18. </Button>
  19. <Grid ColumnDefinitions="2*, 13*, 2*" RowDefinitions="*,15,*,15,*" Width="{Binding $parent[Panel].Bounds.Width}" Margin="0 30">
  20. <!--Статистика игры Горячие клавиши-->
  21. <Border Grid.Column="1" Grid.Row="0" CornerRadius="40" Background="#0BA5CF" BoxShadow="0 5 #0534B5" HorizontalAlignment="Stretch" Margin="0 0 0 0">
  22. <Grid ColumnDefinitions="Auto, *" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
  23. <Svg Grid.Column="0" Path="/Assets/ImgPlaySection/icon_comands.svg" Margin="30 20"/>
  24. <StackPanel Grid.Column="1" Orientation="Vertical" VerticalAlignment="Center"
  25. HorizontalAlignment="Stretch" Margin="0 0 30 0">
  26. <StackPanel>
  27. <TextBlock Text="Игра Комманды" FontSize="24" TextAlignment="Center" Foreground="#FFFFFF" Margin="0 0 0 0"/>
  28. <!--Прогрессбар игры Горячие клавиши-->
  29. <ProgressBar Margin="0 20 0 0" Height="20" Width="{Binding $parent[StackPanel].Bounds.Width}"
  30. Minimum="0" Maximum="100" Value="{Binding ProgressVM.PbGameHotkeys}" Foreground="#0534B5" Background="#FFFFFF"
  31. ShowProgressText="True"
  32. />
  33. </StackPanel>
  34. </StackPanel>
  35. </Grid>
  36. </Border>
  37. <!--Статистика игры Лабиринт-->
  38. <Border Grid.Column="1" Grid.Row="2" CornerRadius="40" Background="#F26527" BoxShadow="0 5 #973F19" HorizontalAlignment="Stretch" Margin="0 0 0 0">
  39. <Grid ColumnDefinitions="Auto, *" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
  40. <Svg Grid.Column="0" Path="/Assets/ImgPlaySection/icon_labyrinth.svg" Margin="30 20"/>
  41. <StackPanel Grid.Column="1" Orientation="Vertical" VerticalAlignment="Center"
  42. HorizontalAlignment="Stretch" Margin="0 0 30 0">
  43. <StackPanel>
  44. <TextBlock Text="Игра Лабиринт" FontSize="24" TextAlignment="Center" Foreground="#FFFFFF" Margin="0 0 0 0"/>
  45. <!--Прогрессбар игры Лабиринт-->
  46. <ProgressBar Margin="0 20 0 0" Height="20" Width="{Binding $parent[StackPanel].Bounds.Width}"
  47. Minimum="0" Maximum="100" Value="{Binding ProgressVM.PbGameLabyrinth}" Foreground="#973F19" Background="#FFFFFF"
  48. ShowProgressText="True"
  49. />
  50. </StackPanel>
  51. </StackPanel>
  52. </Grid>
  53. </Border>
  54. <!--Статистика игры Лабиринт-->
  55. <Border Grid.Column="1" Grid.Row="4" CornerRadius="40" Background="#00A659" BoxShadow="0 5 #006838" HorizontalAlignment="Stretch" Margin="0 0 0 0">
  56. <Grid ColumnDefinitions="Auto, *" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
  57. <Svg Grid.Column="0" Path="/Assets/ImgPlaySection/icon_create_friend.svg" Margin="30 20"/>
  58. <StackPanel Grid.Column="1" Orientation="Vertical" VerticalAlignment="Center"
  59. HorizontalAlignment="Stretch" Margin="0 0 30 0">
  60. <StackPanel>
  61. <TextBlock Text="Игра Создай друга" FontSize="24" TextAlignment="Center" Foreground="#FFFFFF" Margin="0 0 0 0"/>
  62. <!--Прогрессбар игры Лабиринт-->
  63. <ProgressBar Margin="0 20 0 0" Height="20" Width="{Binding $parent[StackPanel].Bounds.Width}"
  64. Minimum="0" Maximum="100" Value="{Binding ProgressVM.PbGameCreateFriend}" Foreground="#006838" Background="#FFFFFF"
  65. ShowProgressText="True"
  66. />
  67. </StackPanel>
  68. </StackPanel>
  69. </Grid>
  70. </Border>
  71. </Grid>
  72. </Panel>
  73. </UserControl>