DataOutput.axaml 2.7 KB

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