How to save and restore the state information of a Stacked Mode GroupBar?

You could save and restore the State information of the GroupBar Items in a Stacked Mode GroupBar by using the
AppStateSerializer’s SerializeObject and DeserializeObject methods.