DataOutput.axaml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.DataOutput"
  7. xmlns:vm="using:LoginGenerator.ViewModels"
  8. x:DataType="vm:MainWindowViewModel"
  9. >
  10. <Grid Background="{Binding DataOutputVM.Background2}">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="50"/>
  13. <RowDefinition Height="*"/>
  14. <RowDefinition Height="50"/>
  15. </Grid.RowDefinitions>
  16. <StackPanel Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
  17. <TextBox Height="10" Width="236" Watermark="Поиск по ФИО" Text="{Binding DataOutputVM.FindFio}"/>
  18. <TextBox Height="10" Width="236" Margin="10 0 0 0" Watermark="Поиск по логину" Text="{Binding DataOutputVM.FindLogin}"/>
  19. <TextBox Height="10" Width="236" Margin="10 0 0 0" Watermark="Поиск по паролю" Text="{Binding DataOutputVM.FindPass}"/>
  20. <ComboBox SelectedIndex="0" Width="236" Margin="10 0 0 0" ItemsSource="{Binding DataOutputVM.Sort}" SelectedItem="{Binding DataOutputVM.SelectedSort}"/>
  21. </StackPanel>
  22. <ListBox Background="{Binding DataOutputVM.Background}" Grid.Row="1" ItemsSource="{Binding DataOutputVM.Userss}">
  23. <ListBox.ItemsPanel>
  24. <ItemsPanelTemplate>
  25. <WrapPanel HorizontalAlignment="Center"/>
  26. </ItemsPanelTemplate>
  27. </ListBox.ItemsPanel>
  28. <ListBox.ItemTemplate>
  29. <DataTemplate>
  30. <Border HorizontalAlignment="Stretch" BorderBrush="Black" BorderThickness="1" CornerRadius="10" Padding="15">
  31. <StackPanel HorizontalAlignment="Stretch" Width="485" Height="45">
  32. <StackPanel Orientation="Horizontal">
  33. <TextBlock Text="{Binding Surname}"/>
  34. <TextBlock Margin="5 0 0 0" Text="{Binding Name}"/>
  35. <TextBlock Margin="5 0 0 0" Text="{Binding Patronymic}"/>
  36. <TextBlock Margin="45 0 0 0" Text="{Binding DateReg, StringFormat={}dd.MM.yyyy}}"/>
  37. </StackPanel>
  38. <StackPanel Margin="0 5 0 0" Orientation="Horizontal">
  39. <TextBlock Text="{Binding Login}"/>
  40. <TextBlock Margin="15 0 0 0" Text="{Binding Password}"/>
  41. </StackPanel>
  42. </StackPanel>
  43. </Border>
  44. </DataTemplate>
  45. </ListBox.ItemTemplate>
  46. </ListBox>
  47. <StackPanel Grid.Row="2" Orientation="Horizontal">
  48. <Button Margin="10 0 0 0" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="↻" Command="{Binding DataOutputVM.FillingUsersList}"/>
  49. <Button Margin="10 0 0 0" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="На страницу генерации" Command="{Binding ViewGeneratePage}"/>
  50. </StackPanel>
  51. </Grid>
  52. </UserControl>