public PivotPage() { this.InitializeComponent(); _navigationHelper = new NavigationHelper(this); _navigationHelper.LoadState += NavigationHelper_LoadState; _navigationHelper.SaveState += NavigationHelper_SaveState; this.SearchedResultsListView.ItemClick += SearchedResultsListView_ItemClick; this.SearchedResultsListView.ItemClick += SearchBox_LostFocus; this.SearchBox.KeyDown += enterKeyDown_handler; // Modify download title layout double width = Window.Current.Bounds.Width; _defaultViewModel[ProgressBarWidthName] = width - 50; // Behaviours when selected Pivot item changes this.Pivot.SelectionChanged += delegate(object sender, SelectionChangedEventArgs e) { var pivot = sender as Pivot; if (pivot != null && pivot.SelectedIndex == 1) { if (!_isPinningFinished) { SecondPivot_Loaded(); } } }; }
public PcItem() { this.InitializeComponent(); _navigationHelper = new NavigationHelper(this); _navigationHelper.LoadState += this.NavigationHelper_LoadState; _navigationHelper.SaveState += this.NavigationHelper_SaveState; }