LoginView.axaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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:YtYtAvalonia.ViewModels"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:Class="YtYtAvalonia.View.LoginView">
  8. <Grid>
  9. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  10. <StackPanel.Styles>
  11. <Style Selector="TextBox">
  12. <Setter Property="Background" Value="#F8FDFF"></Setter>
  13. <Setter Property="BorderBrush" Value="#008BC7"></Setter>
  14. <Setter Property="CornerRadius" Value="8"></Setter>
  15. <Setter Property="BorderThickness" Value="2"></Setter>
  16. <Setter Property="FontSize" Value="13"></Setter>
  17. <Setter Property="FontFamily" Value="Roboto"></Setter>
  18. </Style>
  19. <Style Selector="ComboBox">
  20. <Setter Property="Background" Value="#F8FDFF"></Setter>
  21. <Setter Property="BorderBrush" Value="#008BC7"></Setter>
  22. <Setter Property="CornerRadius" Value="8"></Setter>
  23. <Setter Property="BorderThickness" Value="2"></Setter>
  24. <Setter Property="FontSize" Value="13"></Setter>
  25. <Setter Property="FontFamily" Value="Roboto"></Setter>
  26. <Setter Property="Foreground" Value="Gray"></Setter>
  27. </Style>
  28. <Style Selector="Button:pointerover /template/ ContentPresenter">
  29. <Setter Property="Background" Value="#2B95BD"></Setter>
  30. </Style>
  31. <Style Selector="Button.Login:pointerover /template/ ContentPresenter">
  32. <Setter Property="Background" Value="White"></Setter>
  33. <Setter Property="Foreground" Value="#2B95BD"></Setter>
  34. </Style>
  35. </StackPanel.Styles>
  36. <TextBlock HorizontalAlignment="Center" Margin="0 0 0 30" FontFamily="Roboto" FontSize="25" FontWeight="Bold">Авторизация</TextBlock>
  37. <TextBox Watermark="Логин" Width="360" FontSize="13" Margin="0 0 0 10" ></TextBox>
  38. <TextBox Watermark="Пароль" PasswordChar="•" Width="360" ></TextBox>
  39. <Button HorizontalAlignment="Center" Margin="0 20 0 10" Width="230" Height="45" CornerRadius="10" Background="#38BFF2">
  40. <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Roboto" FontSize="16" FontWeight="DemiBold" Foreground="White">Войти</TextBlock>
  41. </Button>
  42. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  43. <TextBlock Text="Нет аккаунта?" FontFamily="Roboto" FontSize="14" VerticalAlignment="Center"></TextBlock>
  44. <Button Classes="Login" FontFamily="Roboto" FontSize="14" Background="White">Зарегистироваться</Button>
  45. <!--<Button Classes="Login" FontFamily="Roboto" FontSize="14" Background="White" Command="{Binding $parent[Window].((vm.MainWindowViewModel)DataConext).LoadLoginView}">Войти</Button>-->
  46. </StackPanel>
  47. </StackPanel>
  48. </Grid>
  49. </UserControl>