App.xaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <Application
  2. x:Class="Breda_Tour.App"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:local="using:Breda_Tour"
  6. RequestedTheme="Light">
  7. <!--Author: Jannick van Ballegooijen-->
  8. <Application.Resources>
  9. <ResourceDictionary>
  10. <!--Strings -->
  11. <!-- Title -->
  12. <x:String x:Key="AppTitle">Breda Tour</x:String>
  13. <x:String x:Key="AppTitleThinPart">Breda</x:String>
  14. <x:String x:Key="AppTitleBoldPart">Tour</x:String>
  15. <!-- Languages -->
  16. <x:String x:Key="AppLanguageDutch">Nederlands</x:String>
  17. <x:String x:Key="AppLanguageEnglish">English</x:String>
  18. <!-- Settings -->
  19. <x:String x:Key="AppSettingsLanguageSettings">Taal instellingen</x:String>
  20. <x:String x:Key="AppSettingsHelp">Help</x:String>
  21. <!-- Symbols -->
  22. <x:String x:Key="SymbolBack"></x:String>
  23. <x:String x:Key="SymbolClose"></x:String>
  24. <x:String x:Key="SymbolFolder"></x:String>
  25. <x:String x:Key="SymbolSettings"></x:String>
  26. <x:String x:Key="SymbolHelp"></x:String>
  27. <x:String x:Key="SymbolGlobe"></x:String>
  28. <x:String x:Key="SymbolRouteSelect"></x:String>
  29. <x:String x:Key="SymbolStartRoute"></x:String>
  30. <x:String x:Key="SymbolFlag"></x:String>
  31. <x:String x:Key="SymbolThreeDots"></x:String>
  32. <x:String x:Key="SymbolCurrentLocation"></x:String>
  33. <!-- Colors -->
  34. <SolidColorBrush x:Key="BredaToursMainColorBrush" Color="#2962FF"/>
  35. <SolidColorBrush x:Key="BredaToursAccentColorBrush" Color="#82B1FF"/>
  36. <SolidColorBrush x:Key="BredaToursShadowColorBrush" Color="#0D47A1"/>
  37. <LinearGradientBrush x:Key="BredaToursSplashScreenBrush" StartPoint="0,0" EndPoint="0,1">
  38. <GradientStop Color="#185a9d" Offset="0"/>
  39. <GradientStop Color="#43cea2" Offset="1"/>
  40. </LinearGradientBrush>
  41. <LinearGradientBrush x:Key="BredaTourDropShadowBrush" StartPoint="0,0" EndPoint="0,1" SpreadMethod="Reflect">
  42. <GradientStop Color="#44000000" Offset="0"/>
  43. <GradientStop Color="#FFFFFFFF" Offset="0.5"/>
  44. <GradientStop Color="#44000000" Offset="1"/>
  45. </LinearGradientBrush>
  46. <Style TargetType="TextBlock" x:Key="SettingsHeaderStyle">
  47. <Setter Property="Margin" Value="20,15,0,15"/>
  48. <Setter Property="FontSize" Value="14"/>
  49. <Setter Property="FontWeight" Value="Medium"/>
  50. <Setter Property="Foreground" Value="{StaticResource BredaToursMainColorBrush}"/>
  51. </Style>
  52. <!-- SplashScreen Button Style -->
  53. <Style TargetType="Button" x:Key="SplashScreenLanguageButtonStyle">
  54. <Setter Property="Template">
  55. <Setter.Value>
  56. <ControlTemplate>
  57. <Grid>
  58. <VisualStateManager.VisualStateGroups>
  59. <VisualStateGroup x:Name="CommonStates">
  60. <VisualState x:Name="Normal"/>
  61. <VisualState x:Name="Pressed">
  62. <Storyboard>
  63. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="BackgroundRectangle">
  64. <DiscreteObjectKeyFrame KeyTime="0">
  65. <DiscreteObjectKeyFrame.Value>
  66. <Color>#33FFFFFF</Color>
  67. </DiscreteObjectKeyFrame.Value>
  68. </DiscreteObjectKeyFrame>
  69. </ObjectAnimationUsingKeyFrames>
  70. </Storyboard>
  71. </VisualState>
  72. <VisualState x:Name="PointerOver">
  73. <Storyboard>
  74. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="BackgroundRectangle">
  75. <DiscreteObjectKeyFrame KeyTime="0">
  76. <DiscreteObjectKeyFrame.Value>
  77. <Color>#22FFFFFF</Color>
  78. </DiscreteObjectKeyFrame.Value>
  79. </DiscreteObjectKeyFrame>
  80. </ObjectAnimationUsingKeyFrames>
  81. </Storyboard>
  82. </VisualState>
  83. </VisualStateGroup>
  84. </VisualStateManager.VisualStateGroups>
  85. <Rectangle Name="BackgroundRectangle" Stroke="White" RadiusX="2" RadiusY="2" Width="110"/>
  86. <ContentPresenter>
  87. <TextBlock
  88. Text="{Binding Content, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  89. Foreground="White"
  90. Margin="0,2,0,3"
  91. FontSize="11"
  92. HorizontalAlignment="Center"
  93. VerticalAlignment="Center"/>
  94. </ContentPresenter>
  95. </Grid>
  96. </ControlTemplate>
  97. </Setter.Value>
  98. </Setter>
  99. </Style>
  100. <!-- Navigation tab button style -->
  101. <Style TargetType="RadioButton" x:Key="MainNavigationButtonStyle">
  102. <Setter Property="Template">
  103. <Setter.Value>
  104. <ControlTemplate>
  105. <RelativePanel>
  106. <VisualStateManager.VisualStateGroups>
  107. <!--<VisualStateGroup x:Name="CommonStates">
  108. <VisualState x:Name="Normal">
  109. <Storyboard>
  110. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  111. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursShadowColorBrush}"/>
  112. </ObjectAnimationUsingKeyFrames>
  113. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  114. <DiscreteObjectKeyFrame KeyTime="0" Value="#00FFFFFF"/>
  115. </ObjectAnimationUsingKeyFrames>
  116. </Storyboard>
  117. </VisualState>
  118. <VisualState x:Name="MouseOver">
  119. <Storyboard>
  120. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  121. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursAccentColorBrush}"/>
  122. </ObjectAnimationUsingKeyFrames>
  123. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  124. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursAccentColorBrush}"/>
  125. </ObjectAnimationUsingKeyFrames>
  126. </Storyboard>
  127. </VisualState>
  128. </VisualStateGroup>-->
  129. <VisualStateGroup x:Name="CheckedStates">
  130. <VisualState x:Name="Checked">
  131. <Storyboard>
  132. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  133. <DiscreteObjectKeyFrame KeyTime="0" Value="#FFFFFF"/>
  134. </ObjectAnimationUsingKeyFrames>
  135. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  136. <DiscreteObjectKeyFrame KeyTime="0" Value="#FFFFFF"/>
  137. </ObjectAnimationUsingKeyFrames>
  138. </Storyboard>
  139. </VisualState>
  140. <VisualState x:Name="Unchecked">
  141. <Storyboard>
  142. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  143. <DiscreteObjectKeyFrame KeyTime="0" Value="#FFFFFF"/>
  144. </ObjectAnimationUsingKeyFrames>
  145. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  146. <DiscreteObjectKeyFrame KeyTime="0" Value="#00FFFFFF"/>
  147. </ObjectAnimationUsingKeyFrames>
  148. </Storyboard>
  149. </VisualState>
  150. </VisualStateGroup>
  151. <!--<VisualStateGroup x:Name="FocusStates">
  152. <VisualState x:Name="Focused">
  153. <Storyboard>
  154. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  155. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursAccentColorBrush}"/>
  156. </ObjectAnimationUsingKeyFrames>
  157. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  158. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursAccentColorBrush}"/>
  159. </ObjectAnimationUsingKeyFrames>
  160. </Storyboard>
  161. </VisualState>
  162. <VisualState x:Name="Unfocused">
  163. <Storyboard>
  164. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  165. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursShadowColorBrush}"/>
  166. </ObjectAnimationUsingKeyFrames>
  167. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  168. <DiscreteObjectKeyFrame KeyTime="0" Value="#00FFFFFF"/>
  169. </ObjectAnimationUsingKeyFrames>
  170. </Storyboard>
  171. </VisualState>
  172. </VisualStateGroup>-->
  173. </VisualStateManager.VisualStateGroups>
  174. <TextBlock FontFamily="Segoe MDL2 Assets"
  175. FontWeight="Bold"
  176. FontSize="18"
  177. Text="{Binding Content,RelativeSource={RelativeSource Mode=TemplatedParent}}"
  178. RelativePanel.AlignHorizontalCenterWithPanel="True"
  179. RelativePanel.AlignVerticalCenterWithPanel="True"
  180. Name="MenuNavigationSymbol"/>
  181. <Rectangle RelativePanel.AlignBottomWithPanel="True"
  182. RelativePanel.AlignLeftWithPanel="True"
  183. RelativePanel.AlignRightWithPanel="True"
  184. Height="2"
  185. Name="MenuNavigationRectangle"/>
  186. </RelativePanel>
  187. </ControlTemplate>
  188. </Setter.Value>
  189. </Setter>
  190. </Style>
  191. </ResourceDictionary>
  192. </Application.Resources>
  193. </Application>