private void DisplayEnumInControl()
 {
     _comboBoxModelList.Clear();
     foreach (KeyValuePair <string, object> _keyValue in ItemsSource)
     {
         MultiComboBoxModel multiComboBoxModel = new MultiComboBoxModel(_keyValue.Key);
         _comboBoxModelList.Add(multiComboBoxModel);
     }
     CheckableCombo.ItemsSource = _comboBoxModelList;
 }
        private void SelectNodes()
        {
            foreach (KeyValuePair <string, object> keyValue in SelectedItems)
            {
                MultiComboBoxModel s = _comboBoxModelList.FirstOrDefault(i => i.EnumValue == keyValue.Key);

                if (s != null)
                {
                    s.IsChecked = true;
                }
            }
        }