1234567891011121314151617181920212223242526 |
- <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"
- x:DataType="vm:MainWindowViewModel"
- xmlns:vm="using:Auth.ViewModels"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="Auth.Auth">
- <Design.DataContext>
- <!-- This only sets the DataContext for the previewer in an IDE,
- to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
- <vm:AuthVM/>
- </Design.DataContext>
-
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBox Text ="{Binding Auth_VM.Login}" IsEnabled="{Binding Auth_VM.Enabled}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10" Width="200"/>
- <TextBox Text ="{Binding Auth_VM.Password}" IsEnabled="{Binding Auth_VM.Enabled}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="200"/>
- <Button Command="{Binding Knopka}" IsEnabled="{Binding Auth_VM.Enabled}" IsVisible="{Binding Auth_VM.Visible}" HorizontalAlignment="Center">Авторизация</Button>
- <UserControl Content="{Binding Auth_VM.Canva}" IsVisible="{Binding Auth_VM.VisibleText}"></UserControl>
- <TextBox Text ="{Binding Auth_VM.Proverka}" IsVisible="{Binding Auth_VM.VisibleText}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="200"/>
- <Button Command="{Binding ButtonPro}" IsVisible="{Binding Auth_VM.VisibleText}" HorizontalAlignment="Center">Подтвердить</Button>
-
- </StackPanel>
- </UserControl>
|