123456789101112131415161718192021222324252627 |
- <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:Users_Roles.ViewModels"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:DataType="vm:PageRegistrationVM"
- x:Class="Users_Roles.PageRegistrationV">
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" >
- <StackPanel>
- <Border Classes ="trash">
- <StackPanel>
- <Button IsVisible="{Binding IsVisAdmin}" Command="{Binding ToAddUser}" CommandParameter="1">Зарегистрировать администратора</Button>
- <TextBlock>Логин</TextBlock>
- <TextBox Text="{Binding Login}"></TextBox>
- <TextBlock>Пароль</TextBlock>
- <TextBox PasswordChar="*" Text="{Binding Password}"></TextBox>
- <Button IsVisible="{Binding IsVisUser}" Command="{Binding ToAddUser}" CommandParameter="2">Зарегистрироваться</Button>
- <Button IsVisible="{Binding IsVisUser}" Command="{Binding ToAuth}">Авторизоваться</Button>
- <TextBlock Foreground="Red" Text="{Binding Massege}"></TextBlock>
- </StackPanel >
- </Border>
- </StackPanel>
- </StackPanel>
-
- </UserControl>
|