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; }
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; }
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; }
public LoadPhoto() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); LaunchPicker(); }
public LoadPhoto() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); myButton.Click += (sender, e) => LaunchPicker(); }