Acount.xaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <Page x:Class="PP_Ven_MosS.Pages.Acount"
  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:PP_Ven_MosS.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="Acount">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="35"></RowDefinition>
  13. <RowDefinition></RowDefinition>
  14. <RowDefinition Height="30"></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <StackPanel Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  17. <TextBlock Text="Зарегистрированные пользователи" FontWeight="Bold" FontSize="30" Margin="100,0"></TextBlock>
  18. </StackPanel>
  19. <StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Vertical">
  20. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  21. <GroupBox Height="60" Header="Введите текст для поиска" BorderThickness="2" BorderBrush="#FF0000" Margin="10,0,0,0">
  22. <TextBox TextChanged="TB_Search_app_TextChanged" Name="TB_Search_app" Width="200" Height="30"/>
  23. </GroupBox>
  24. <ComboBox SelectionChanged="CB_Filter_user_SelectionChanged" Name="CB_Filter_user" Width="200" Height="30" Margin="10,10,0,0" />
  25. </StackPanel>
  26. <ListView Grid.Row="2" Grid.Column="0" Name="UserList" Height="700" MinWidth="500">
  27. <ListView.ItemsPanel>
  28. <ItemsPanelTemplate>
  29. <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
  30. </ItemsPanelTemplate>
  31. </ListView.ItemsPanel>
  32. <ListView.ItemTemplate>
  33. <DataTemplate>
  34. <Border Width="500" Height="150" BorderThickness="1" BorderBrush="Red">
  35. <StackPanel Orientation="Horizontal">
  36. <StackPanel Margin="10,0,0,0" Width="300" Orientation="Vertical" HorizontalAlignment="Left">
  37. <TextBlock Text="{Binding Surname}"/>
  38. <TextBlock Text="{Binding Name}"/>
  39. <TextBlock Text="{Binding Patronymic}"/>
  40. <TextBlock Text="{Binding Post}"/>
  41. <TextBlock Text="{Binding Phone_number}"/>
  42. <TextBlock Text="{Binding Path=Role.Title_role}"/>
  43. <TextBlock x:Name="cca" Text="{Binding Count_complete_app}" Visibility="Hidden"/>
  44. <TextBlock x:Name="cce" Text="{Binding Count_complete_event}" Visibility="Hidden"/>
  45. </StackPanel>
  46. </StackPanel>
  47. </Border>
  48. </DataTemplate>
  49. </ListView.ItemTemplate>
  50. </ListView>
  51. </StackPanel>
  52. <StackPanel Grid.Row="2" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  53. <Button Height="30" Content="Выйти" FontSize="20" Style="{StaticResource BtnSt}" Name="Exit" Click="Exit_Click"></Button>
  54. </StackPanel>
  55. </Grid>
  56. </Page>