AuthorizationView.axaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:vm="using:Acosta.ViewModels"
  5. x:DataType="vm:MainWindowViewModel"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. mc:Ignorable="d" d:DesignWidth="1920" d:DesignHeight="1080"
  8. x:Class="Acosta.Views.AuthorizationView">
  9. <Grid>
  10. <StackPanel HorizontalAlignment="Center" Margin="0 70">
  11. <StackPanel.Styles>
  12. <Style Selector="TextBox">
  13. <Setter Property="Background" Value="#FFF8F8"></Setter>
  14. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  15. <Setter Property="CornerRadius" Value="8"></Setter>
  16. <Setter Property="BorderThickness" Value="2"></Setter>
  17. <Setter Property="FontSize" Value="13"></Setter>
  18. <Setter Property="FontFamily" Value="Roboto"></Setter>
  19. </Style>
  20. <Style Selector="Button:pointerover /template/ ContentPresenter">
  21. <Setter Property="Background" Value="#A10009"></Setter>
  22. </Style>
  23. </StackPanel.Styles>
  24. <Image Source="avares://Acosta/Assets/AcostaLogo.png" Width="450" Margin="0 0 0 100"></Image>
  25. <TextBox Watermark="Логин" Width="360" FontSize="13" Margin="0 0 0 10"></TextBox>
  26. <TextBox Watermark="Пароль" PasswordChar="•" Width="360"></TextBox>
  27. <TextBlock Margin="0 5 0 0" HorizontalAlignment="Center"
  28. FontFamily="Roboto" FontSize="13" Foreground="#A52C2C">
  29. </TextBlock>
  30. <Button HorizontalAlignment="Center" Margin="0 20 0 10" Width="230"
  31. Height="45" CornerRadius="10" Background="#E40714" Command="{Binding LoadPersonalAccount}">
  32. <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
  33. FontFamily="Roboto" FontSize="16" FontWeight="DemiBold" Foreground="White">Войти
  34. </TextBlock>
  35. </Button>
  36. </StackPanel>
  37. </Grid>
  38. </UserControl>