public void LoadExpansionState(ITreeViewModelItem item)
        {
            var itemPath = item.CreatePath();

            if (ExpansionStates.ContainsKey(itemPath))
            {
                item.IsExpanded = ExpansionStates[itemPath];
            }
        }
        public void SaveExpansionState(ITreeViewModelItem item)
        {
            var itemPath = item.CreatePath();

            if (ExpansionStates.ContainsKey(itemPath))
            {
                ExpansionStates[itemPath] = item.IsExpanded;
            }
            else
            {
                ExpansionStates.Add(itemPath, item.IsExpanded);
            }
        }