App.xaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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="SymbolGlobe"></x:String>
  27. <x:String x:Key="SymbolRouteSelect"></x:String>
  28. <x:String x:Key="SymbolStartRoute"></x:String>
  29. <x:String x:Key="SymbolFlag"></x:String>
  30. <x:String x:Key="SymbolThreeDots"></x:String>
  31. <x:String x:Key="SymbolCurrentLocation"></x:String>
  32. <!-- Colors -->
  33. <SolidColorBrush x:Key="BredaToursMainColorBrush" Color="#2962FF"/>
  34. <SolidColorBrush x:Key="BredaToursAccentColorBrush" Color="#82B1FF"/>
  35. <SolidColorBrush x:Key="BredaToursShadowColorBrush" Color="#0D47A1"/>
  36. <LinearGradientBrush x:Key="BredaToursSplashScreenBrush" StartPoint="0,0" EndPoint="0,1">
  37. <GradientStop Color="#185a9d" Offset="0"/>
  38. <GradientStop Color="#43cea2" Offset="1"/>
  39. </LinearGradientBrush>
  40. <Style TargetType="TextBlock" x:Key="SettingsHeaderStyle">
  41. <Setter Property="Margin" Value="20,15,0,15"/>
  42. <Setter Property="FontSize" Value="14"/>
  43. <Setter Property="FontWeight" Value="Medium"/>
  44. <Setter Property="Foreground" Value="{StaticResource BredaToursMainColorBrush}"/>
  45. </Style>
  46. <!-- SplashScreen Button Style -->
  47. <Style TargetType="Button" x:Key="SplashScreenLanguageButtonStyle">
  48. <Setter Property="Template">
  49. <Setter.Value>
  50. <ControlTemplate>
  51. <Grid>
  52. <VisualStateManager.VisualStateGroups>
  53. <VisualStateGroup x:Name="CommonStates">
  54. <VisualState x:Name="Normal"/>
  55. <VisualState x:Name="Pressed">
  56. <Storyboard>
  57. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="BackgroundRectangle">
  58. <DiscreteObjectKeyFrame KeyTime="0">
  59. <DiscreteObjectKeyFrame.Value>
  60. <Color>#33FFFFFF</Color>
  61. </DiscreteObjectKeyFrame.Value>
  62. </DiscreteObjectKeyFrame>
  63. </ObjectAnimationUsingKeyFrames>
  64. </Storyboard>
  65. </VisualState>
  66. <VisualState x:Name="PointerOver">
  67. <Storyboard>
  68. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="BackgroundRectangle">
  69. <DiscreteObjectKeyFrame KeyTime="0">
  70. <DiscreteObjectKeyFrame.Value>
  71. <Color>#22FFFFFF</Color>
  72. </DiscreteObjectKeyFrame.Value>
  73. </DiscreteObjectKeyFrame>
  74. </ObjectAnimationUsingKeyFrames>
  75. </Storyboard>
  76. </VisualState>
  77. </VisualStateGroup>
  78. </VisualStateManager.VisualStateGroups>
  79. <Rectangle Name="BackgroundRectangle" Stroke="White" RadiusX="2" RadiusY="2" Width="110"/>
  80. <ContentPresenter>
  81. <TextBlock
  82. Text="{Binding Content, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  83. Foreground="White"
  84. Margin="0,2,0,3"
  85. FontSize="11"
  86. HorizontalAlignment="Center"
  87. VerticalAlignment="Center"/>
  88. </ContentPresenter>
  89. </Grid>
  90. </ControlTemplate>
  91. </Setter.Value>
  92. </Setter>
  93. </Style>
  94. <!-- Navigation tab button style -->
  95. <Style TargetType="RadioButton" x:Key="MainNavigationButtonStyle">
  96. <Setter Property="Template">
  97. <Setter.Value>
  98. <ControlTemplate>
  99. <RelativePanel>
  100. <VisualStateManager.VisualStateGroups>
  101. <!--<VisualStateGroup x:Name="CommonStates">
  102. <VisualState x:Name="Normal">
  103. <Storyboard>
  104. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  105. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursShadowColorBrush}"/>
  106. </ObjectAnimationUsingKeyFrames>
  107. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  108. <DiscreteObjectKeyFrame KeyTime="0" Value="#00FFFFFF"/>
  109. </ObjectAnimationUsingKeyFrames>
  110. </Storyboard>
  111. </VisualState>
  112. <VisualState x:Name="MouseOver">
  113. <Storyboard>
  114. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  115. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursAccentColorBrush}"/>
  116. </ObjectAnimationUsingKeyFrames>
  117. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  118. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursAccentColorBrush}"/>
  119. </ObjectAnimationUsingKeyFrames>
  120. </Storyboard>
  121. </VisualState>
  122. </VisualStateGroup>-->
  123. <VisualStateGroup x:Name="CheckedStates">
  124. <VisualState x:Name="Checked">
  125. <Storyboard>
  126. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  127. <DiscreteObjectKeyFrame KeyTime="0" Value="#FFFFFF"/>
  128. </ObjectAnimationUsingKeyFrames>
  129. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  130. <DiscreteObjectKeyFrame KeyTime="0" Value="#FFFFFF"/>
  131. </ObjectAnimationUsingKeyFrames>
  132. </Storyboard>
  133. </VisualState>
  134. <VisualState x:Name="Unchecked">
  135. <Storyboard>
  136. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  137. <DiscreteObjectKeyFrame KeyTime="0" Value="#FFFFFF"/>
  138. </ObjectAnimationUsingKeyFrames>
  139. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  140. <DiscreteObjectKeyFrame KeyTime="0" Value="#00FFFFFF"/>
  141. </ObjectAnimationUsingKeyFrames>
  142. </Storyboard>
  143. </VisualState>
  144. </VisualStateGroup>
  145. <!--<VisualStateGroup x:Name="FocusStates">
  146. <VisualState x:Name="Focused">
  147. <Storyboard>
  148. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  149. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursAccentColorBrush}"/>
  150. </ObjectAnimationUsingKeyFrames>
  151. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  152. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursAccentColorBrush}"/>
  153. </ObjectAnimationUsingKeyFrames>
  154. </Storyboard>
  155. </VisualState>
  156. <VisualState x:Name="Unfocused">
  157. <Storyboard>
  158. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground)" Storyboard.TargetName="MenuNavigationSymbol">
  159. <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource BredaToursShadowColorBrush}"/>
  160. </ObjectAnimationUsingKeyFrames>
  161. <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Fill)" Storyboard.TargetName="MenuNavigationRectangle">
  162. <DiscreteObjectKeyFrame KeyTime="0" Value="#00FFFFFF"/>
  163. </ObjectAnimationUsingKeyFrames>
  164. </Storyboard>
  165. </VisualState>
  166. </VisualStateGroup>-->
  167. </VisualStateManager.VisualStateGroups>
  168. <TextBlock FontFamily="Segoe MDL2 Assets"
  169. FontWeight="Bold"
  170. FontSize="18"
  171. Text="{Binding Content,RelativeSource={RelativeSource Mode=TemplatedParent}}"
  172. RelativePanel.AlignHorizontalCenterWithPanel="True"
  173. RelativePanel.AlignVerticalCenterWithPanel="True"
  174. Name="MenuNavigationSymbol"/>
  175. <Rectangle RelativePanel.AlignBottomWithPanel="True"
  176. RelativePanel.AlignLeftWithPanel="True"
  177. RelativePanel.AlignRightWithPanel="True"
  178. Height="2"
  179. Name="MenuNavigationRectangle"/>
  180. </RelativePanel>
  181. </ControlTemplate>
  182. </Setter.Value>
  183. </Setter>
  184. </Style>
  185. </ResourceDictionary>
  186. </Application.Resources>
  187. </Application>