1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <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="AvaloniaHomeTry.AdminPage"
- xmlns:vm="using:AvaloniaHomeTry.ViewModels"
- x:DataType="vm:AdminPageViewModel">
-
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width= "*"/>
- <ColumnDefinition Width= "*"/>
- <ColumnDefinition Width= "*"/>
- <ColumnDefinition Width= "*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height = "110"/>
- <RowDefinition Height = "*"/>
- <RowDefinition Height = "*"/>
- <RowDefinition Height = "*"/>
- </Grid.RowDefinitions>
-
- <StackPanel Grid.Row="0" Grid.Column="1" Margin="10" VerticalAlignment="Center">
- <TextBlock Text="Поиск"/>
- <TextBox Text="{Binding Find}" Watermark="Введите текст для поиска: "/>
- </StackPanel>
-
- <StackPanel Margin="10" Grid.Row="0" Grid.Column="0">
- <TextBlock Text="Сортировка по дате рождения"/>
- <RadioButton Content="По возростанию" Command="{Binding DateSort}" CommandParameter="1"/>
- <RadioButton Content="По убыванию" Command="{Binding DateSort}" CommandParameter="2"/>
- </StackPanel>
-
- <StackPanel Grid.Column="2" Margin="10" VerticalAlignment="Center">
- <TextBlock Text="Фильтр по полу" />
- <ComboBox ItemsSource="{Binding GenderList}" SelectedItem="{Binding FilterGender}">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding GenderName}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- </StackPanel>
-
- <StackPanel Grid.Column="4" Margin="10" VerticalAlignment="Center">
- <Button Content="Мой профиль" Command="{Binding MyProfile}"/>
- </StackPanel>
-
- <ListBox Grid.Row="1" Grid.RowSpan="2" Grid.ColumnSpan="4">
- <ListBox ItemsSource="{Binding UsersTables}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <StackPanel>
- <TextBlock Text="{Binding Surname, StringFormat=Фамилия: {0}}" />
- <TextBlock Text="{Binding Firstname, StringFormat=Имя: {0}}" />
- <TextBlock Text="{Binding Patronymic, StringFormat=Отчество: {0}}" />
- <TextBlock Text="{Binding GenderNavigation.GenderName, StringFormat=Пол: {0}}" />
- <TextBlock Text="{Binding Dataofbirth, StringFormat=Дата рождения: {0:dd/MM/yyyy}}"/>
- </StackPanel>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </ListBox>
-
- <Button Grid.ColumnSpan="4" Grid.Row="3" Command="{Binding Exit}" Content="Выход" HorizontalAlignment="Center" Margin="15"/>
- </Grid>
- </UserControl>
|