public PlayersFeature() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; // This is a static public property that will allow downstream pages to get // a handle to the TeamsFeature instance in order to call methods that are in this class. Current = this; // This frame is hidden, meaning it is never shown. It is simply used to load // each scenario page and then pluck out the input and output sections and // place them into the UserControls on the main page. HiddenFrame = new Windows.UI.Xaml.Controls.Frame(); HiddenFrame.Visibility = Windows.UI.Xaml.Visibility.Collapsed; ContentRoot.Children.Add(HiddenFrame); ViewDefinitionLoaded += PlayersFeature_ViewDefinitionLoaded; var dataSource = new PlayersFeatureIndicatorDataSource(); ContextControl.ItemsSource = dataSource.Items; Loaded += PageLoaded; Unloaded += PageUnloaded; }
public TeamsFeature() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; teamsContext = TeamsContextViewModel.Instance; }
public PlayersYears() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; Loaded += PlayersYears_Loaded; Unloaded += PlayersYears_Unloaded; }
public HubPage() { this.InitializeComponent(); // Hub is only supported in Portrait orientation DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait; this.NavigationCacheMode = NavigationCacheMode.Required; this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; }
public HubPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; }