AuthorizationView.axaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <Style Selector="Button:pressed">
  24. <Setter Property="RenderTransform" Value="none"/>
  25. </Style>
  26. </StackPanel.Styles>
  27. <Image Source="avares://Acosta/Assets/AcostaLogo.png" Width="450" Margin="0 0 0 100"></Image>
  28. <TextBox Text="{Binding AuthorizationVM.Login}" Watermark="Логин" Width="360" FontSize="13" Margin="0 0 0 10"></TextBox>
  29. <TextBox Text="{Binding AuthorizationVM.Password}" Watermark="Пароль" PasswordChar="•" Width="360"></TextBox>
  30. <TextBlock Text="{Binding AuthorizationVM.Message}"/>
  31. <TextBlock Margin="0 5 0 0" HorizontalAlignment="Center" FontFamily="Roboto" FontSize="13" Foreground="#A52C2C"></TextBlock>
  32. <Button HorizontalAlignment="Center" Margin="0 20 0 10" Width="230" Height="45" CornerRadius="10" Background="#E40714" Command="{Binding LoadPersonalAccount}" IsDefault="True">
  33. <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Roboto" FontSize="16" FontWeight="DemiBold" Foreground="White">Войти</TextBlock>
  34. </Button>
  35. </StackPanel>
  36. </Grid>
  37. </UserControl>