protected override void SaveState(Dictionary<String, Object> pageState) { var selectedItem = (SampleDataItem)this.flipView.SelectedItem; pageState["SelectedItem"] = selectedItem.UniqueId; }