UserActivity.xaml 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <Page x:Class="Exam.UserActivity"
  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:Exam"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800" Background="White"
  9. Title="UserActivity">
  10. <Grid>
  11. <DockPanel>
  12. <StackPanel DockPanel.Dock="Top">
  13. <ComboBox x:Name="CBUsers" Height="20" Width="300" Margin="10" Visibility="Collapsed" SelectionChanged="User_Changed"/>
  14. </StackPanel>
  15. <StackPanel DockPanel.Dock="Top">
  16. <TextBlock x:Name="TBAllPoints" Margin="10"/>
  17. <TextBlock x:Name="TBPosition" Margin="10"/>
  18. </StackPanel>
  19. <ListView x:Name="LVUsers" ScrollViewer.HorizontalScrollBarVisibility="Disabled" DockPanel.Dock="Top">
  20. <ListView.ItemTemplate>
  21. <DataTemplate>
  22. <StackPanel Margin="10">
  23. <TextBlock Text="{Binding metrics.metric, StringFormat=Метрика: {0}}" Margin="10"/>
  24. <TextBlock Text="{Binding coefficient, StringFormat=Коэффициент: {0}}" Margin="10"/>
  25. <TextBlock Text="{Binding dateofachievement, StringFormat=Дата получения: {0:dd.mm.yyyy}}" Margin="10"/>
  26. </StackPanel>
  27. </DataTemplate>
  28. </ListView.ItemTemplate>
  29. </ListView>
  30. </DockPanel>
  31. </Grid>
  32. </Page>