CreateProfileView.axaml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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="1200" d:DesignHeight="800"
  6. x:Class="HelloItQuantum.Views.CreateProfileView"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:HelloItQuantum.ViewModels"
  9. Background="#B4E3F0">
  10. <UserControl.Styles>
  11. <Style Selector="TextBlock">
  12. <Setter Property="FontFamily" Value="{StaticResource BankGothicMediumRUS}" />
  13. </Style>
  14. <Style Selector="Button">
  15. <Setter Property="FontFamily" Value="{StaticResource BankGothicMediumRUS}" />
  16. </Style>
  17. <Style Selector="TextBox">
  18. <Setter Property="FontFamily" Value="{StaticResource BankGothicMediumRUS}" />
  19. </Style>
  20. <Style Selector="Button:pointerover/template/ContentPresenter">
  21. <Setter Property="Background" Value="#013E21" />
  22. </Style>
  23. <Style Selector="TextBox:pointerover/template/Border">
  24. <Setter Property="Background" Value="#0532AC" />
  25. <Setter Property="BorderBrush" Value="Transparent" />
  26. <Setter Property="CornerRadius" Value="20" />
  27. </Style>
  28. <Style Selector="TextBox:focus/template/Border">
  29. <Setter Property="Background" Value="#0532AC" />
  30. <Setter Property="BorderBrush" Value="Transparent" />
  31. <Setter Property="CornerRadius" Value="20" />
  32. </Style>
  33. </UserControl.Styles>
  34. <StackPanel>
  35. <Grid ColumnDefinitions="Auto, 8*" Height="{Binding $parent[StackPanel].Bounds.Height}">
  36. <Panel Grid.Column="0" VerticalAlignment="Stretch">
  37. <Image Source="/Assets/ImgAuth/фонAuth.png" Height="{Binding $parent[Grid].Bounds.Height}" HorizontalAlignment="Left"/>
  38. <Grid RowDefinitions="4*, 8*, 4*" ColumnDefinitions="2*, 8*, 5*">
  39. <Svg Grid.Row="1" Grid.Column="1"
  40. Path="/Assets/ImgAuth/ItKvantumLogoAuth.svg" HorizontalAlignment="Center" Margin="0 0 160 0"/>
  41. </Grid>
  42. </Panel>
  43. <StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="0 40 40 0">
  44. <TextBlock VerticalAlignment="Stretch" FontSize="40"
  45. Foreground="#0534B5" HorizontalAlignment="Center" Text="Создание профиля"/>
  46. <Border CornerRadius="20" Background="#0532AC" BoxShadow="0 5 #031952"
  47. HorizontalAlignment="Stretch" Margin="0 35 0 0">
  48. <TextBox Background="Transparent" BorderBrush="Transparent" CornerRadius="20" Text="{Binding CreateProfileVM.Nickname}"
  49. FontSize="40" Foreground="#FFFFFF" Padding="25 15" Watermark="Никнейм"/>
  50. </Border>
  51. <Border CornerRadius="20" Background="#0532AC" BoxShadow="0 5 #031952"
  52. HorizontalAlignment="Stretch" Margin="0 20 0 0">
  53. <TextBox Background="Transparent" BorderBrush="Transparent" CornerRadius="20" Text="{Binding CreateProfileVM.Name}"
  54. FontSize="40" Foreground="#FFFFFF" Padding="25 15" Watermark="Имя"/>
  55. </Border>
  56. <Border CornerRadius="20" Background="#0532AC" BoxShadow="0 5 #031952"
  57. HorizontalAlignment="Stretch" Margin="0 20 0 0">
  58. <TextBox Background="Transparent" BorderBrush="Transparent" CornerRadius="20" Text="{Binding CreateProfileVM.Surname}"
  59. FontSize="40" Foreground="#FFFFFF" Padding="25 15" Watermark="Фамилия"/>
  60. </Border>
  61. <Border CornerRadius="20" Background="#00A659" BoxShadow="0 5 #006838" Margin="0 20 0 0" HorizontalAlignment="Stretch"
  62. IsVisible="{Binding HotkeysVM.VisibleBtnNext}">
  63. <Button VerticalContentAlignment="Center" HorizontalAlignment="Stretch"
  64. Command="{Binding CreateProfileVM.CreateProfile}" CommandParameter="Далее" CornerRadius="20">
  65. <TextBlock Text="Создать" TextAlignment="Center" FontSize="34" Foreground="#FFFFFF" Margin="25 15"/>
  66. </Button>
  67. </Border>
  68. <Button Content="Есть профиль" Background="Transparent" Foreground="#B21E22" FontSize="30" HorizontalAlignment="Right"
  69. Command="{Binding CreateProfileVM.Auth}">
  70. <Button.Styles>
  71. <Style Selector="Button:pointerover/template/ContentPresenter">
  72. <Setter Property="Background" Value="Transparent" />
  73. </Style>
  74. </Button.Styles>
  75. </Button>
  76. </StackPanel>
  77. </Grid>
  78. </StackPanel>
  79. </UserControl>