ScoreView.xaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <Page
  2. x:Class="YJMPD_UWP.Views.ScoreView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:local="using:YJMPD_UWP.Views"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. mc:Ignorable="d">
  9. <ScrollViewer>
  10. <Grid Style="{StaticResource BaseGrid}" >
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto" />
  13. <RowDefinition Height="*" />
  14. <RowDefinition Height="Auto" />
  15. </Grid.RowDefinitions>
  16. <StackPanel Margin="0,10,0,0" Grid.Row="0">
  17. <TextBlock Text="Players" Style="{StaticResource Header}" />
  18. <TextBlock Text="{Binding PlayersCount}" />
  19. </StackPanel>
  20. <ListView x:Name="PlayersList" ItemsSource="{Binding Players}" SelectionMode="None" Grid.Row="1" IsTapEnabled="False">
  21. <ListView.ItemTemplate>
  22. <DataTemplate x:Name="ListViewDataTemplate">
  23. <StackPanel Orientation="Horizontal">
  24. <TextBlock Text="{Binding Username}" Margin="0,0,5,0" />
  25. <TextBlock Text="{Binding Points}" Margin="0,0,5,0" />
  26. <TextBlock Text="{Binding PointsTotal}" />
  27. </StackPanel>
  28. </DataTemplate>
  29. </ListView.ItemTemplate>
  30. </ListView>
  31. <StackPanel Grid.Row="2">
  32. <Button Style="{StaticResource Green}" Name="ReadyButton" Click="ReadyButton_Click">
  33. <StackPanel Orientation="Horizontal">
  34. <TextBlock Style="{StaticResource Icon}" Text="&#xE8FB;" Visibility="Collapsed" Name="ReadyCheck" Margin="0,0,10,0" />
  35. <TextBlock Text="Ready" />
  36. </StackPanel>
  37. </Button>
  38. </StackPanel>
  39. </Grid>
  40. </ScrollViewer>
  41. </Page>