LoginPage.axaml 1.5 KB

123456789101112131415161718192021222324
  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. xmlns:vm="clr-namespace:CalculatorSuperNew.ViewModels"
  6. x:DataType="vm:MainWindowViewModel"
  7. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  8. x:Class="CalculatorSuperNew.Views.LoginPage">
  9. <StackPanel Width="200" VerticalAlignment="Center">
  10. <TextBlock HorizontalAlignment="Center">Логин</TextBlock>
  11. <TextBox TextAlignment="Center" IsEnabled="{Binding LP.Enable}" Text = "{Binding LP.GetSetLogin}" Watermark="Хе-хе" Name="Login"></TextBox>
  12. <TextBlock HorizontalAlignment="Center">Пароль</TextBlock>
  13. <TextBox Watermark="Ха-ха" IsEnabled="{Binding LP.Enable}" Text="{Binding LP.GetSetPass}" TextAlignment="Center" PasswordChar="☕" Name="Pass"></TextBox>
  14. <StackPanel IsVisible="{Binding LP.Visibility}">
  15. <TextBlock HorizontalAlignment="Center">Введите капчу</TextBlock>
  16. <TextBox Watermark="Хи-хи" Text="{Binding LP.CapText}" TextAlignment="Center" PasswordChar="*" Name="Cap"></TextBox>
  17. <UserControl Content="{Binding LP.Capcha}"></UserControl>
  18. </StackPanel>
  19. <Button Margin="0,10,0,0" IsEnabled="{Binding LP.Enable}" Command="{Binding toCalculator}" HorizontalAlignment="Center">Войти</Button>
  20. </StackPanel>
  21. </UserControl>