/// <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="pageState">An empty dictionary to be populated with serializable state.</param> protected override void SaveState(Dictionary <String, Object> pageState) { pageState["ID"] = Note.UniqueId; Note.PropertyChanged -= CurrentNotePropertyChanged; _printer.UnregisterForPrinting(); }