AdminData.xaml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <Page x:Class="SneakersSkakunov.AdminData"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:SneakersSkakunov"
  7. mc:Ignorable="d"
  8. d:DesignHeight="720" d:DesignWidth="1080"
  9. Title="AdminData">
  10. <Grid Background="#f5f5f5">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="*"></RowDefinition>
  13. <RowDefinition Height="*"></RowDefinition>
  14. </Grid.RowDefinitions>
  15. <DataGrid ColumnHeaderStyle="{DynamicResource HeadDefault}" Grid.Row="0" Background="#f5f5f5" x:Name="Data" CanUserAddRows="False" AutoGenerateColumns="False" HorizontalAlignment="Center" RowBackground="#f5f5f5" Foreground="#292929">
  16. <DataGrid.Columns>
  17. <DataGridTextColumn Header="Имя" Width="*" Binding="{Binding Path=Name}"/>
  18. <DataGridTextColumn Header="Фамилия" Width="*" Binding="{Binding Path=Surname}"/>
  19. <DataGridTextColumn Header="Отчество" Width="*" Binding="{Binding Path=Patronymic}"/>
  20. <DataGridTextColumn Header="Пол" Width="*" Binding="{Binding Path=Gender.Gender1}"/>
  21. <DataGridTextColumn Header="Логин" Width="*" Binding="{Binding Path=Login}"/>
  22. <DataGridTextColumn Header="Дата рождения" Width="*" Binding="{Binding Path=DateBirth , StringFormat=\{0:dd.MM.yyyy\}}"/>
  23. </DataGrid.Columns>
  24. </DataGrid>
  25. <StackPanel Grid.Row="1">
  26. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  27. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin=" 5">
  28. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="SortAZ">Сортировка А-Я по фамилии</Button>
  29. </Border>
  30. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin=" 5">
  31. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="SortZA">Сортировка Я-А по фамилии</Button>
  32. </Border>
  33. </StackPanel>
  34. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  35. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin="5">
  36. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="FindM">Найти М</Button>
  37. </Border>
  38. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin="5">
  39. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="FindW">Найти Ж</Button>
  40. </Border>
  41. </StackPanel>
  42. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  43. <TextBlock Margin="5" HorizontalAlignment="Center">Введите поиск (по фамилии или имени)</TextBlock>
  44. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Height="20" Width="140" Margin="5">
  45. <TextBox Background="#0000" BorderBrush="#0000" Foreground="#292929" Name="SearchString"/>
  46. </Border>
  47. </StackPanel>
  48. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  49. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin="5">
  50. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="Search">Искать</Button>
  51. </Border>
  52. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin="5">
  53. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="Revert" Content="Вернуться"/>
  54. </Border>
  55. </StackPanel>
  56. </StackPanel>
  57. </Grid>
  58. </Page>