コード例 #1
0
        public LoadPhoto()
        {
            this.InitializeComponent();

#if WINDOWS_APP
            BackButton.Style = App.Current.Resources["NavigationBackButtonNormalStyle"] as Style;
#else
            BackButton.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
#endif         

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState; 
        }
コード例 #2
0
        public MainPage()
        {
            this.InitializeComponent();

            // This is a static public property that allows downstream pages to get a handle to the MainPage instance
            // in order to call methods that are in this class.
            Current = this;

            // Prepare navigation events
            this.NavigationCacheMode = NavigationCacheMode.Enabled;
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
コード例 #3
0
        public LiveCamera()
        {
            this.InitializeComponent();

            // Update style for the back button based on the environment
#if WINDOWS_APP
            BackButton.Style = App.Current.Resources["NavigationBackButtonNormalStyle"] as Style;
#else
            BackButton.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
#endif

            // Prepare navigation events
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;                      
        }
コード例 #4
0
 public LoadPhoto()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     LaunchPicker();
 }
コード例 #5
0
 public LoadPhoto()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     myButton.Click += (sender, e) => LaunchPicker();
 }