123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <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"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="LoginGenerator.GeneratePage"
- xmlns:vm="using:LoginGenerator.ViewModels"
- x:DataType="vm:MainWindowViewModel"
- Background="{Binding GeneratePageVM.Background}"
- >
- <Grid>
- <StackPanel VerticalAlignment="Center" >
- <TextBlock FontSize="24" FontWeight="Bold" HorizontalAlignment="Center">АССИСТЕНТ РЕГИСТРАЦИИ</TextBlock>
- <StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <TextBox Width="615" Watermark="Введите ФИО" Text="{Binding GeneratePageVM.FIO}" Name="FIO"/>
- <Button Margin="10 0 0 0" Width="75" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="🌗" Command="{Binding GeneratePageVM.SwitchTheme}"/>
- </StackPanel>
- <StackPanel Margin="0 10 0 0" HorizontalAlignment="Center" Orientation="Horizontal">
- <Button Width="167" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="Ф" Command="{Binding GeneratePageVM.OSurnameCopy_Click}"/>
- <Button Width="167" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Margin="10 0 0 0" Content="И" Command="{Binding GeneratePageVM.ONameCopy_Click}"/>
- <Button Width="167" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Margin="10 0 0 0" Content="О" Command="{Binding GeneratePageVM.OPatronymicCopy_Click}" />
- <Button Width="167" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Margin="10 0 0 0" Content="ИО" Command="{Binding GeneratePageVM.ONamePatronymicCopy_Click}"/>
- </StackPanel>
- <StackPanel Margin="0 10 0 0" HorizontalAlignment="Center" Orientation="Horizontal">
- <TextBox Width="529" Watermark="Логин" Text="{Binding GeneratePageVM.Login}" Name="Login"/>
- <Button Margin="10 0 0 0" Width="75" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="©" Command="{Binding GeneratePageVM.LoginCopy}"/>
- <Button Margin="10 0 0 0" Width="75" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="↻" Command="{Binding GeneratePageVM.RegenLogin}"/>
- </StackPanel>
- <StackPanel Margin="0 10 0 0" HorizontalAlignment="Center" Orientation="Horizontal">
- <TextBox Width="529" Watermark="Пароль" Name="Pass" Text="{Binding GeneratePageVM.Pass}"/>
- <Button Margin="10 0 0 0" Width="75" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="©" Command="{Binding GeneratePageVM.PassCopy}"/>
- <Button Margin="10 0 0 0" Width="75" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="↻" Command="{Binding GeneratePageVM.RegenPass}"/>
- </StackPanel>
- <StackPanel Margin="0 10 0 0" Orientation="Horizontal" HorizontalAlignment="Center">
- <Button Width="226" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="Записать данные" Command="{Binding GeneratePageVM.WriteIn}"/>
- <Button Width="226" Margin="10 0 0 0" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="Скопировать данные" Command="{Binding GeneratePageVM.CopyAll_Click}"/>
- <Button Width="226" Margin="10 0 0 0" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="Сгенерировать данные" Command="{Binding GeneratePageVM.GenerateAll}"/>
- </StackPanel>
- <StackPanel Margin="0 10 0 0" HorizontalAlignment="Center">
- <Button Width="700" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="Посмотреть данные пользователей" Command="{Binding ViewUsersData}"/>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Grid>
-
-
- </UserControl>
|