UserData.xaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <Page x:Class="ModuleExam.UserData"
  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:ModuleExam"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="UserData">
  10. <Grid Background="White">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="*"/>
  13. <RowDefinition Height="2*"/>
  14. <RowDefinition Height="10*"/>
  15. <RowDefinition Height="*"/>
  16. </Grid.RowDefinitions>
  17. <StackPanel Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center" Width="200">
  18. <ComboBox Name="SelectUser" SelectionChanged="ChangeUser"/>
  19. </StackPanel>
  20. <StackPanel Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center" Width="200">
  21. <TextBlock Name="FullName"/>
  22. <TextBlock Margin="0,10,0,0" Name="Post"/>
  23. </StackPanel>
  24. <ListView Grid.Row="2" Name="UserActivity">
  25. <ListView.ItemsPanel>
  26. <ItemsPanelTemplate>
  27. <StackPanel Orientation="Vertical"/>
  28. </ItemsPanelTemplate>
  29. </ListView.ItemsPanel>
  30. <ListView.ItemTemplate>
  31. <DataTemplate>
  32. <Border>
  33. <StackPanel Orientation="Horizontal">
  34. <TextBlock Text="{Binding metrics.metric}"/>
  35. <TextBlock Margin="10,0,0,0" Text="{Binding coefficient}"/>
  36. </StackPanel>
  37. </Border>
  38. </DataTemplate>
  39. </ListView.ItemTemplate>
  40. </ListView>
  41. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="3">
  42. <Button Click="GoBack" Content="Назад"/>
  43. </StackPanel>
  44. </Grid>
  45. </Page>