示例#1
0
        private void LoadState(object navigationParameter)
        {
            PackItems = SampleDataSource.Instance.PackItems;
            if (navigationParameter == null)
            {
                navigationParameter = SampleDataSource.Instance.CurrentMasterId;
            }
            SampleDataItem item = SampleDataSource.GetMasterItem(Convert.ToInt32(navigationParameter));

            SelectedItem = item;
            foreach (var _packitem in PackItems)
            {
                _packitem.InitailData();
                _packitem.GroupHeader = SelectedItem.GroupHeader;
            }
        }