private void navigationHelper_SaveState(object sender, SaveStateEventArgs e) { if (CurrentPageViewModel != null) { CurrentPageViewModel.navigationHelper_SaveState(e); } SaveState(e); }
protected override void SaveState(object sender, SaveStateEventArgs e) { e.PageState["position"] = _visibleIndex; base.SaveState(sender, e); }
/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param> /// <param name="e">Event data that provides an empty dictionary to be populated with /// serializable state.</param> private void navigationHelper_SaveState(object sender, SaveStateEventArgs e) { Windows.Storage.ApplicationData.Current.LocalSettings.Values["status"] = textBlockDebug.Text; Windows.Storage.ApplicationData.Current.LocalSettings.Values["events"] = textBoxEvents.Text; }
void navigationHelper_SaveState(object sender, SaveStateEventArgs e) { StopTimeTimer(); }
private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { // TODO: Сохраните здесь уникальное состояние страницы. }
private void SaveState(object sender, SaveStateEventArgs e) { e.PageState["tapCount"] = tapCount; }
protected override Task OnSaveStateAsync(SaveStateEventArgs e) { return base.OnSaveStateAsync(e); }
protected abstract void SaveState(SaveStateEventArgs e);
protected override Task OnSaveStateAsync(SaveStateEventArgs e) { return(base.OnSaveStateAsync(e)); }
private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { localSettings.Values[thisItem.Title + isPinnedSettingName] = thisItem.IsPinned; }
/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param> /// <param name="e">Event data that provides an empty dictionary to be populated with /// serializable state.</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { ViewModel.Save(e.PageState); }
/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param> /// <param name="e">Event data that provides an empty dictionary to be populated with /// serializable state.</param> private void navigationHelper_SaveState(object sender, SaveStateEventArgs e) { e.PageState["FilterIndex"] = defaultViewModel.FilterIndex; }
/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param> /// <param name="e">Event data that provides an empty dictionary to be populated with /// serializable state.</param> private void navigationHelper_SaveState(object sender, SaveStateEventArgs e) { e.PageState["greetingOutputText"] = greetingOutput.Text; }
protected override void HandleNavigationHelperSaveState(object sender, SaveStateEventArgs e) { base.HandleNavigationHelperSaveState(sender, e); listRestoreHelper.SaveState(e.PageState); }
/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/>.</param> /// <param name="e">Event data that provides an empty dictionary to be populated with /// serializable state.</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { // TODO: Save the unique state of the page here. }
public void navigationHelper_SaveState(SaveStateEventArgs e) { ActivePageCancellationTokenSource.Cancel(); ActivePageCancellationTokenSource = null; IsLoading = false; SaveState(e); }
/// <summary> /// Conserve l'état associé à cette page en cas de suspension de l'application ou de /// suppression de la page du cache de navigation. Les valeurs doivent être conformes aux conditions de /// exigences en matière de sérialisation de <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">La source de l'événement ; en général <see cref="NavigationHelper"/></param> /// <param name="e">Données d'événement qui fournissent un dictionnaire vide à remplir à l'aide de l' /// état sérialisable.</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { // TODO: enregistrer l'état unique de la page ici. }
protected override async Task OnSaveStateAsync(SaveStateEventArgs e) { try { // Call load on each sub-ViewModel in this collection when displaying this page foreach (var vm in this.ViewModels) if (vm != null && vm.IsInitialized) await vm.SaveStateAsync(e); } catch (Exception ex) { Platform.Current.Logger.LogError(ex, "Error during CollectionViewModelBase.OnSaveStateAsync calling each individual child ViewModel.SaveStateAsync"); throw; } await base.OnSaveStateAsync(e); }
/// <summary> /// Mantiene lo stato associato a questa pagina in caso di sospensione dell'applicazione o se la /// viene scartata dalla cache di navigazione. I valori devono essere conformi ai requisiti di /// serializzazione di <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">Origine dell'evento. In genere <see cref="NavigationHelper"/></param> /// <param name="e">Dati di evento che forniscono un dizionario vuoto da popolare con /// uno stato serializzabile.</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { // TODO: salvare qui lo stato univoco della pagina. }
private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { e.PageState.Add("HubOffset", HubScrollViewer.HorizontalOffset); }
private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { e.PageState["Tags"] = SearchBox.Text; e.PageState["Tab"] = MainPivot.SelectedIndex; }
private void navigationHelper_SaveState(object sender, SaveStateEventArgs e) { e.PageState["SelectedIndex"] = this.MasterListView.SelectedIndex; }
protected override void SaveState(object sender, SaveStateEventArgs e) { e.PageState.Add(PageValues.SELECTED_PIVOT_INDEX, pivot.SelectedIndex); }
private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { PlayerPageViewModel.instance.SavePlayer(); }
/// <summary> /// 墓碑化处理 /// </summary> internal abstract void NavigationHelper_SaveState(object sender, SaveStateEventArgs e);
private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { RoundPageViewModel.instance.NavigatedFrom(); }
/// <summary> /// Preserva o estado associado a esta página no caso do aplicativo ser suspenso ou a /// página é descartada do cache de navegação. Valores devem estar de acordo com os requisitos de /// serialização <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender"> A origem do evento; geralmente <see cref="NavigationHelper"/>.</param> /// <param name="e">Dados do evento que fornecem um dicionário vazio a ser preenchido com /// estado serializável.</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { // TODO: Salve o estado exclusivo da página aqui. }
private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { throw new NotImplementedException(); }
/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param> /// <param name="e">Event data that provides an empty dictionary to be populated with /// serializable state.</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { e.PageState["value"] = textBox1.Text; }
private void NavigationHelperOnSaveState(object sender, SaveStateEventArgs args) { RaiseSaveState(args.PageState); }
protected override Task OnSaveStateAsync(SaveStateEventArgs e) { Platform.Current.SaveSettings(); if (this.View != null) this.View.GotFocus -= View_GotFocus; return base.OnSaveStateAsync(e); }
/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param> /// <param name="e">Event data that provides an empty dictionary to be populated with /// serializable state.</param> private void navigationHelper_SaveState(object sender, SaveStateEventArgs e) { }
/// <summary> /// Сохраняет состояние, связанное с данной страницей, в случае приостановки приложения или /// удаления страницы из кэша навигации. Значения должны соответствовать требованиям сериализации /// <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">Источник события; как правило, <see cref="NavigationHelper"/></param> /// <param name="e">Данные события, которые предоставляют пустой словарь для заполнения /// сериализуемым состоянием.</param> private void navigationHelper_SaveState(object sender, SaveStateEventArgs e) { e.PageState["text"] = txtMain.Text; }
/// <summary> /// 保留与此页关联的状态,以防挂起应用程序或 /// 从导航缓存中放弃此页。值必须符合序列化 /// <see cref="SuspensionManager.SessionState"/> 的序列化要求。 /// </summary> /// <param name="sender">事件的来源;通常为 <see cref="NavigationHelper"/>。</param> ///<param name="e">提供要使用可序列化状态填充的空字典 ///的事件数据。</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { // TODO: 在此处保存页面的唯一状态。 }
/// <summary> /// アプリケーションが中断される場合、またはページがナビゲーション キャッシュから破棄される場合、 /// このページに関連付けられた状態を保存します。値は、 /// <see cref="SuspensionManager.SessionState"/> のシリアル化の要件に準拠する必要があります。 /// </summary> /// <param name="sender">イベントのソース (通常、<see cref="NavigationHelper"/>)</param> /// <param name="e">シリアル化可能な状態で作成される空のディクショナリを提供するイベント データ ///。</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { // TODO: ページの一意の状態をここに保存します。 }
protected override Task OnSaveStateAsync(SaveStateEventArgs e) { Platform.Current.AuthManager.UserAuthenticatedStatusChanged -= AuthenticationManager_UserAuthenticated; return base.OnSaveStateAsync(e); }
/// <summary> /// Behält den dieser Seite zugeordneten Zustand bei, wenn die Anwendung angehalten oder /// die Seite im Navigationscache verworfen wird. Die Werte müssen den Serialisierungsanforderungen /// von <see cref="SuspensionManager.SessionState"/> entsprechen. /// </summary> /// <param name="sender">Die Quelle des Ereignisses, normalerweise <see cref="NavigationHelper"/></param> /// <param name="e">Ereignisdaten, die ein leeres Wörterbuch zum Auffüllen bereitstellen /// serialisierbarer Zustand.</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { // TODO: den eindeutigen Zustand der Seite hier speichern. }
/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/>.</param> /// <param name="e">Event data that provides an empty dictionary to be populated with /// serializable state.</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { // TODO: Save the unique state of the page here. }
/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param> /// <param name="e">Event data that provides an empty dictionary to be populated with /// serializable state.</param> private void navigationHelper_SaveState(object sender, SaveStateEventArgs e) { this.SizeChanged -= ChampionsPage_SizeChanged; }
/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param> /// <param name="e">Event data that provides an empty dictionary to be populated with /// serializable state.</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { }
public void SaveState( object sender, SaveStateEventArgs e ) { // TODO: Derive a serializable navigation parameter and assign it to // pageState("SelectedItem") }