GeneratePage.axaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. x:Class="LoginGenerator.GeneratePage"
  7. xmlns:vm="using:LoginGenerator.ViewModels"
  8. x:DataType="vm:MainWindowViewModel"
  9. Background="{Binding GeneratePageVM.Background}"
  10. >
  11. <Grid>
  12. <StackPanel VerticalAlignment="Center" >
  13. <TextBlock FontSize="24" FontWeight="Bold" HorizontalAlignment="Center">АССИСТЕНТ РЕГИСТРАЦИИ</TextBlock>
  14. <StackPanel>
  15. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  16. <TextBox Width="615" Watermark="Введите ФИО" Text="{Binding GeneratePageVM.FIO}" Name="FIO"/>
  17. <Button Margin="10 0 0 0" Width="75" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="🌗" Command="{Binding GeneratePageVM.SwitchTheme}"/>
  18. </StackPanel>
  19. <StackPanel Margin="0 10 0 0" HorizontalAlignment="Center" Orientation="Horizontal">
  20. <Button Width="167" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="Ф" Command="{Binding GeneratePageVM.OSurnameCopy_Click}"/>
  21. <Button Width="167" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Margin="10 0 0 0" Content="И" Command="{Binding GeneratePageVM.ONameCopy_Click}"/>
  22. <Button Width="167" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Margin="10 0 0 0" Content="О" Command="{Binding GeneratePageVM.OPatronymicCopy_Click}" />
  23. <Button Width="167" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Margin="10 0 0 0" Content="ИО" Command="{Binding GeneratePageVM.ONamePatronymicCopy_Click}"/>
  24. </StackPanel>
  25. <StackPanel Margin="0 10 0 0" HorizontalAlignment="Center" Orientation="Horizontal">
  26. <TextBox Width="529" Watermark="Логин" Text="{Binding GeneratePageVM.Login}" Name="Login"/>
  27. <Button Margin="10 0 0 0" Width="75" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="©" Command="{Binding GeneratePageVM.LoginCopy}"/>
  28. <Button Margin="10 0 0 0" Width="75" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="↻" Command="{Binding GeneratePageVM.RegenLogin}"/>
  29. </StackPanel>
  30. <StackPanel Margin="0 10 0 0" HorizontalAlignment="Center" Orientation="Horizontal">
  31. <TextBox Width="529" Watermark="Пароль" Name="Pass" Text="{Binding GeneratePageVM.Pass}"/>
  32. <Button Margin="10 0 0 0" Width="75" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="©" Command="{Binding GeneratePageVM.PassCopy}"/>
  33. <Button Margin="10 0 0 0" Width="75" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="↻" Command="{Binding GeneratePageVM.RegenPass}"/>
  34. </StackPanel>
  35. <StackPanel Margin="0 10 0 0" Orientation="Horizontal" HorizontalAlignment="Center">
  36. <Button Width="226" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="Записать данные" Command="{Binding GeneratePageVM.WriteIn}"/>
  37. <Button Width="226" Margin="10 0 0 0" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="Скопировать данные" Command="{Binding GeneratePageVM.CopyAll_Click}"/>
  38. <Button Width="226" Margin="10 0 0 0" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="Сгенерировать данные" Command="{Binding GeneratePageVM.GenerateAll}"/>
  39. </StackPanel>
  40. <StackPanel Margin="0 10 0 0" HorizontalAlignment="Center">
  41. <Button Width="700" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="Посмотреть данные пользователей" Command="{Binding ViewUsersData}"/>
  42. </StackPanel>
  43. </StackPanel>
  44. </StackPanel>
  45. </Grid>
  46. </UserControl>