Bläddra i källkod

Added vvv site button

Jeroen 10 år sedan
förälder
incheckning
b7f8a70b6e

+ 4 - 0
Breda-Tour/App.xaml

@@ -45,6 +45,10 @@
                 <GradientStop Color="#185a9d" Offset="0"/>
                 <GradientStop Color="#43cea2" Offset="1"/>
             </LinearGradientBrush>
+            <LinearGradientBrush x:Key="BredaToursVVVBrush" StartPoint="0,0" EndPoint="0,1">
+                <GradientStop Color="#185a9d" Offset="0"/>
+                <GradientStop Color="#18189d" Offset="1"/>
+            </LinearGradientBrush>
             <LinearGradientBrush x:Key="BredaTourDropShadowBrush" StartPoint="0,0" EndPoint="0,1" SpreadMethod="Reflect">
                 <GradientStop Color="#44000000" Offset="0"/>
                 <GradientStop Color="#FFFFFFFF" Offset="0.5"/>

+ 2 - 0
Breda-Tour/SettingsScreen/SettingsPage.xaml

@@ -32,6 +32,8 @@
                         <TextBlock x:Uid="AppSettingstxtReset" Margin="0,-1,0,0" FontSize="12"  Text="Route afsluiten en applicatie naar basis instellingen resetten" Foreground="#ec0000"></TextBlock>
                     </StackPanel>
                 </ListViewItem>
+                <Button Margin="15" Background="{StaticResource BredaToursVVVBrush}" Foreground="White" FontWeight="Bold" HorizontalAlignment="Stretch"
+                        Height="40" x:Name="VVVButton" Click="VVVButton_OnClick">VVV Website</Button>
             </StackPanel>
         </ScrollViewer>
     </Grid>

+ 8 - 0
Breda-Tour/SettingsScreen/SettingsPage.xaml.cs

@@ -3,6 +3,8 @@ using Breda_Tour;
 using Windows.UI.Xaml.Controls;
 using Windows.UI.Xaml.Input;
 using System.Threading.Tasks;
+using Windows.System;
+using Windows.UI.Xaml;
 using Breda_Tour.SplashScreen;
 
 namespace Breda_Tours.SettingsScreen
@@ -36,5 +38,11 @@ namespace Breda_Tours.SettingsScreen
             Frame.Navigate(typeof(SplashPage));
 
         }
+
+        private async void VVVButton_OnClick(object sender, RoutedEventArgs e)
+        {
+            await Launcher.LaunchUriAsync(new Uri("http://www.vvvbreda.nl//"));
+
+        }
     }
 }