123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="using:AuthAndCaptcha.ViewModels"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="AuthAndCaptcha.Auth"
- x:DataType="vm:MainWindowViewModel">
-
- <Grid>
- <StackPanel>
- <StackPanel Classes="authSP">
- <TextBlock Classes="authMainTitle">Авторизация</TextBlock>
- </StackPanel>
- <StackPanel Classes="loginPasswordSP">
- <StackPanel Classes="loginPasswordT">
- <TextBlock>логин</TextBlock>
- <TextBox Classes="authTB" Name="loginTextBox" Text="{Binding AuthVM.UsersLogin}"></TextBox>
- </StackPanel>
- <StackPanel Classes="loginPasswordT">
- <TextBlock>пароль</TextBlock>
- <TextBox Classes="authTB" Text="{Binding AuthVM.UsersPassword}"></TextBox>
- </StackPanel>
- </StackPanel>
- <StackPanel Classes="authSP">
- <Button Classes="authBut" Command="{Binding Check}" IsVisible="{Binding AuthVM.AuthButtonVisible}">Войти</Button>
- </StackPanel>
- <StackPanel Classes="authSP" IsVisible="{Binding AuthVM.CanTextVisible}">
- <StackPanel Classes="authSP">
- <TextBlock>Введите данные заново и впишите цифры с рисунка</TextBlock>
- </StackPanel>
- <UserControl Content="{Binding AuthVM.Can}"></UserControl>
- <StackPanel Classes="authSP">
- <TextBox Classes="authTB" Text="{Binding AuthVM.CanText}"></TextBox>
- </StackPanel>
- <StackPanel Classes="authSP">
- <Button Classes="authBut" Command="{Binding CheckCaptcha}">Проверить</Button>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Grid>
- </UserControl>
|