Enter.axaml 1.1 KB

1234567891011121314151617181920
  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="AvaloniaApplication1.Enter"
  7. xmlns:vm="using:AvaloniaApplication1.ViewModels"
  8. x:DataType="vm:MainWindowViewModel">
  9. <StackPanel Margin="20" Width="500" Height="200" VerticalAlignment="Center" HorizontalAlignment="Center" >
  10. <TextBlock Text="Введите логин" Margin="0 5"/>
  11. <TextBox Text="{Binding Login}" Watermark="Введите логин"/>
  12. <TextBlock Text="Введите пароль" Margin="0 5"/>
  13. <TextBox Text="{Binding Password}" Watermark="Введите пароль" PasswordChar="*" Margin="0 5"/>
  14. <Button Width="100" Height="30" Content="Войти" Command="{Binding SignIn}"/>
  15. <TextBlock Text="{Binding Info}"></TextBlock>
  16. </StackPanel>
  17. </UserControl>