HelpView.xaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <Page
  2. x:Class="YJMPD_UWP.Views.HelpView"
  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. <Page.Resources>
  10. <Style TargetType="StackPanel" x:Key="HelpPanel">
  11. <Setter Property="Margin" Value="10,10,10,0" />
  12. <Setter Property="Padding" Value="0,0,0,10" />
  13. <Setter Property="BorderBrush" Value="{ThemeResource SystemControlBackgroundChromeMediumLowBrush}" />
  14. <Setter Property="BorderThickness" Value="0,0,0,2" />
  15. </Style>
  16. <Style TargetType="TextBlock" x:Key="HelpText">
  17. <Setter Property="RelativePanel.AlignTopWithPanel" Value="True" />
  18. <Setter Property="RelativePanel.AlignLeftWithPanel" Value="True" />
  19. <Setter Property="TextWrapping" Value="WrapWholeWords" />
  20. <Setter Property="TextAlignment" Value="Left" />
  21. </Style>
  22. <Style TargetType="TextBlock" x:Key="HelpTextImage">
  23. <Setter Property="RelativePanel.AlignTopWithPanel" Value="True" />
  24. <Setter Property="RelativePanel.AlignLeftWithPanel" Value="True" />
  25. <Setter Property="TextWrapping" Value="WrapWholeWords" />
  26. <Setter Property="Margin" Value="0,0,60,0" />
  27. <Setter Property="TextAlignment" Value="Left" />
  28. </Style>
  29. <Style TargetType="Image" x:Key="HelpImageSmall">
  30. <Setter Property="RelativePanel.AlignRightWithPanel" Value="True" />
  31. <Setter Property="RelativePanel.AlignVerticalCenterWithPanel" Value="True" />
  32. <Setter Property="Width" Value="50" />
  33. <Setter Property="Height" Value="50" />
  34. <Setter Property="Stretch" Value="UniformToFill"/>
  35. </Style>
  36. <Style TargetType="SymbolIcon" x:Key="HelpSymbolSmall">
  37. <Setter Property="RelativePanel.AlignRightWithPanel" Value="True" />
  38. <Setter Property="RelativePanel.AlignVerticalCenterWithPanel" Value="True" />
  39. <Setter Property="Width" Value="50" />
  40. <Setter Property="Height" Value="50" />
  41. </Style>
  42. <Style TargetType="TextBlock" x:Key="HelpIconSmall">
  43. <Setter Property="RelativePanel.AlignRightWithPanel" Value="True" />
  44. <Setter Property="RelativePanel.AlignVerticalCenterWithPanel" Value="True" />
  45. <Setter Property="FontFamily" Value="Segoe MDL2 Assets" />
  46. <Setter Property="FontSize" Value="40" />
  47. </Style>
  48. <Style TargetType="Image" x:Key="HelpImageLarge">
  49. <Setter Property="Stretch" Value="UniformToFill"/>
  50. <Setter Property="Margin" Value="0,5,0,0" />
  51. </Style>
  52. </Page.Resources>
  53. <ScrollViewer HorizontalScrollMode="Disabled" VerticalScrollMode="Enabled" VerticalSnapPointsAlignment="Near">
  54. <Grid>
  55. <Grid.RowDefinitions>
  56. <RowDefinition Height="Auto" />
  57. <RowDefinition Height="Auto" />
  58. <RowDefinition Height="Auto" />
  59. <RowDefinition Height="Auto" />
  60. <RowDefinition Height="Auto" />
  61. <RowDefinition Height="Auto" />
  62. <RowDefinition Height="Auto" />
  63. </Grid.RowDefinitions>
  64. <!-- Position -->
  65. <StackPanel Grid.Row="0" Style="{StaticResource HelpPanel}">
  66. <TextBlock Text="{Binding HelpItem1Header}" Style="{StaticResource Header}" />
  67. <RelativePanel>
  68. <TextBlock Text="{Binding HelpItem1Text}" Style="{StaticResource HelpTextImage}" />
  69. <Image Source="/Assets/CurrentLocationRound.png" Style="{StaticResource HelpImageSmall}" />
  70. </RelativePanel>
  71. </StackPanel>
  72. <!-- Page Navigation -->
  73. <StackPanel Grid.Row="1" Style="{StaticResource HelpPanel}">
  74. <TextBlock Text="{Binding HelpItem2Header}" Style="{StaticResource Header}" />
  75. <RelativePanel>
  76. <TextBlock Text="{Binding HelpItem2Text}" Style="{StaticResource HelpText}" />
  77. </RelativePanel>
  78. <Image Source="/Assets/Help/HelpItem2Image.png" Style="{StaticResource HelpImageLarge}" />
  79. </StackPanel>
  80. <!-- GPS Information -->
  81. <StackPanel Grid.Row="2" Style="{StaticResource HelpPanel}">
  82. <TextBlock Text="{Binding HelpItem3Header}" Style="{StaticResource Header}" />
  83. <RelativePanel>
  84. <TextBlock Text="{Binding HelpItem3Text}" Style="{StaticResource HelpText}" />
  85. </RelativePanel>
  86. <Image Source="/Assets/Help/HelpItem3Image.png" Style="{StaticResource HelpImageLarge}" />
  87. </StackPanel>
  88. <!-- Map + Controls (Tilt,zoom,pan,rotate) -->
  89. <!-- Route -->
  90. <!-- Help -->
  91. <!-- Settings -->
  92. <!-- Landmark -->
  93. <!-- Visited / Not Visited -->
  94. <!-- Starting a route -->
  95. <!-- Stopping a route -->
  96. <!-- What happens when you walk -->
  97. <!-- Buttons and text during navigation -->
  98. </Grid>
  99. </ScrollViewer>
  100. </Page>