file360

Log | Files | Refs

PersonalizationPage.xaml.cs (1064B)


      1 using File360.Common;
      2 using System;
      3 using System.Collections.Generic;
      4 using System.IO;
      5 using System.Linq;
      6 using System.Runtime.InteropServices.WindowsRuntime;
      7 using Windows.Foundation;
      8 using Windows.Foundation.Collections;
      9 using Windows.UI.Xaml;
     10 using Windows.UI.Xaml.Controls;
     11 using Windows.UI.Xaml.Controls.Primitives;
     12 using Windows.UI.Xaml.Data;
     13 using Windows.UI.Xaml.Input;
     14 using Windows.UI.Xaml.Media;
     15 using Windows.UI.Xaml.Navigation;
     16 
     17 namespace File360
     18 {
     19     public sealed partial class PersonalizationPage : Page
     20     {
     21         public PersonalizationPage()
     22         {
     23             this.InitializeComponent();
     24             Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed;
     25         }
     26 
     27         private void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)
     28         {
     29             if (this.Frame.CanGoBack) this.Frame.GoBack();
     30         }
     31 
     32         private void GoBack(object sender, RoutedEventArgs e)
     33         {
     34             if (this.Frame.CanGoBack) this.Frame.GoBack();
     35         }
     36 
     37     }
     38 }