RatingPage.xaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <Page x:Class="ModuleExam.RatingPage"
  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="RatingPage">
  10. <Grid Background="White">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="10*"/>
  13. <RowDefinition Height="*"/>
  14. </Grid.RowDefinitions>
  15. <ListView Grid.Row="0" Name="UsersList">
  16. <ListView.ItemsPanel>
  17. <ItemsPanelTemplate>
  18. <StackPanel Orientation="Vertical"/>
  19. </ItemsPanelTemplate>
  20. </ListView.ItemsPanel>
  21. <ListView.ItemTemplate>
  22. <DataTemplate>
  23. <Border>
  24. <StackPanel Orientation="Horizontal">
  25. <TextBlock Text="{Binding FullName}"/>
  26. <TextBlock Margin="10,0,0,0" Text="{Binding TotalScore}"/>
  27. <TextBlock Margin="10,0,0,0" Uid="{Binding UserId}" Loaded="PlaceInList"/>
  28. </StackPanel>
  29. </Border>
  30. </DataTemplate>
  31. </ListView.ItemTemplate>
  32. </ListView>
  33. <StackPanel HorizontalAlignment="Center" Grid.Row="1">
  34. <Button Content="Вернуться назад" Click="GoBack"/>
  35. </StackPanel>
  36. </Grid>
  37. </Page>