User.xaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <Page x:Class="ModelExam.User"
  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:ModelExam"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="User">
  10. <Page.Resources>
  11. <DataTemplate x:Key="allusers">
  12. <Border BorderBrush="Black" BorderThickness="1" Width="170">
  13. <StackPanel Uid="uid" Orientation="Horizontal">
  14. <TextBlock Text="Фамилия: "></TextBlock>
  15. <TextBlock Text="{Binding surname}"></TextBlock>
  16. <TextBlock Text=" "></TextBlock>
  17. <TextBlock Text="Имя: "></TextBlock>
  18. <TextBlock Text="{Binding firstname}"></TextBlock>
  19. <TextBlock Text=" "></TextBlock>
  20. <TextBlock Text="Отчество: "></TextBlock>
  21. <TextBlock Text="{Binding patronymic}"></TextBlock>
  22. <StackPanel Orientation="Vertical">
  23. <TextBlock Text="{Binding id_post}"></TextBlock>
  24. </StackPanel>
  25. </StackPanel>
  26. </Border>
  27. </DataTemplate>
  28. </Page.Resources>
  29. <Grid>
  30. <Grid.RowDefinitions>
  31. <RowDefinition Height="7*"/>
  32. <RowDefinition Height="38*"/>
  33. </Grid.RowDefinitions>
  34. <ListBox Grid.Row="1" x:Name="lb" ItemTemplate="{StaticResource allusers}"></ListBox>
  35. </Grid>
  36. </Page>