App.xaml 14 KB

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