Testing.ItemDetailPage.SaveState C# (CSharp) 메소드

SaveState() 보호된 메소드

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 SuspensionManager.SessionState.
protected SaveState ( Object>.Dictionary pageState ) : void
pageState Object>.Dictionary An empty dictionary to be populated with serializable state.
리턴 void
        protected override void SaveState(Dictionary<String, Object> pageState)
        {
            var selectedItem = (SampleDataItem)this.flipView.SelectedItem;
            pageState["SelectedItem"] = selectedItem.UniqueId;
        }