StatisticsView.xaml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <Page
  2. x:Class="YJMPD_UWP.Views.StatisticsView"
  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. <StackPanel Style="{StaticResource BaseStackPanel}" >
  11. <StackPanel Margin="0,10,0,0">
  12. <TextBlock Text="{Binding Information}" Style="{StaticResource Subtext}" />
  13. </StackPanel>
  14. <StackPanel Margin="0,10,0,0">
  15. <TextBlock Text="Total Distance Walked" Style="{StaticResource Header}" />
  16. <TextBlock Text="{Binding Distance}" />
  17. </StackPanel>
  18. <StackPanel Margin="0,10,0,0">
  19. <TextBlock Text="Total Matches" Style="{StaticResource Header}" />
  20. <TextBlock Text="{Binding MatchesCount}" />
  21. </StackPanel>
  22. <StackPanel Margin="0,10,0,0">
  23. <TextBlock Text="Times Leader" Style="{StaticResource Header}" />
  24. <TextBlock Text="{Binding LeaderCount}" />
  25. </StackPanel>
  26. <StackPanel Margin="0,10,0,0">
  27. <TextBlock Text="Points" Style="{StaticResource Header}" />
  28. <RelativePanel>
  29. <TextBlock Text="Total:" Style="{StaticResource Subtext}" RelativePanel.AlignLeftWithPanel="True"/>
  30. <TextBlock Text="{Binding PointsTotal}" RelativePanel.AlignRightWithPanel="True"/>
  31. </RelativePanel>
  32. <RelativePanel>
  33. <TextBlock Text="Avg:" Style="{StaticResource Subtext}" RelativePanel.AlignLeftWithPanel="True"/>
  34. <TextBlock Text="{Binding PointsAverage}" RelativePanel.AlignRightWithPanel="True"/>
  35. </RelativePanel>
  36. <RelativePanel>
  37. <TextBlock Text="Max:" Style="{StaticResource Subtext}" RelativePanel.AlignLeftWithPanel="True"/>
  38. <TextBlock Text="{Binding PointsMax}" RelativePanel.AlignRightWithPanel="True"/>
  39. </RelativePanel>
  40. <RelativePanel>
  41. <TextBlock Text="Min:" Style="{StaticResource Subtext}" RelativePanel.AlignLeftWithPanel="True"/>
  42. <TextBlock Text="{Binding PointsMin}" RelativePanel.AlignRightWithPanel="True"/>
  43. </RelativePanel>
  44. </StackPanel>
  45. </StackPanel>
  46. </ScrollViewer>
  47. </Page>