12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <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.DataOutput"
- xmlns:vm="using:LoginGenerator.ViewModels"
- x:DataType="vm:MainWindowViewModel"
- >
- <Grid Background="{Binding DataOutputVM.Background2}">
- <Grid.RowDefinitions>
- <RowDefinition Height="50"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="50"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
- <TextBox Height="10" Width="236" Watermark="Поиск по ФИО" Text="{Binding DataOutputVM.FindFio}"/>
- <TextBox Height="10" Width="236" Margin="10 0 0 0" Watermark="Поиск по логину" Text="{Binding DataOutputVM.FindLogin}"/>
- <TextBox Height="10" Width="236" Margin="10 0 0 0" Watermark="Поиск по паролю" Text="{Binding DataOutputVM.FindPass}"/>
- <ComboBox SelectedIndex="0" Width="236" Margin="10 0 0 0" ItemsSource="{Binding DataOutputVM.Sort}" SelectedItem="{Binding DataOutputVM.SelectedSort}"/>
-
- </StackPanel>
-
- <ListBox Background="{Binding DataOutputVM.Background}" Grid.Row="1" ItemsSource="{Binding DataOutputVM.Userss}">
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel HorizontalAlignment="Center"/>
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Border HorizontalAlignment="Stretch" BorderBrush="Black" BorderThickness="1" CornerRadius="10" Padding="15">
- <StackPanel HorizontalAlignment="Stretch" Width="485" Height="45">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding Surname}"/>
- <TextBlock Margin="5 0 0 0" Text="{Binding Name}"/>
- <TextBlock Margin="5 0 0 0" Text="{Binding Patronymic}"/>
- <TextBlock Margin="45 0 0 0" Text="{Binding DateReg, StringFormat={}dd.MM.yyyy}}"/>
- </StackPanel>
- <StackPanel Margin="0 5 0 0" Orientation="Horizontal">
- <TextBlock Text="{Binding Login}"/>
- <TextBlock Margin="15 0 0 0" Text="{Binding Password}"/>
- </StackPanel>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- <StackPanel Grid.Row="2" Orientation="Horizontal">
- <Button Margin="10 0 0 0" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="↻" Command="{Binding DataOutputVM.FillingUsersList}"/>
- <Button Margin="10 0 0 0" HorizontalContentAlignment="Center" FontWeight="Bold" BorderBrush="Black" Background="White" Foreground="#545454" Content="На страницу генерации" Command="{Binding ViewGeneratePage}"/>
- </StackPanel>
- </Grid>
- </UserControl>
|