/// <summary> /// Copy class constructor /// </summary> /// <param name="copyThis"></param> public BookmarkesViewModel(BookmarkesViewModel copyThis) : this() { if (copyThis == null) { return; } ////this.IsOpen = copyThis.IsOpen; this could magically open other drop downs :-) foreach (var item in copyThis.DropDownItems) { _DropDownItems.Add(new ListItemViewModel(item as ListItemViewModel)); } // Select quivalent item in target collection if (copyThis.SelectedItem != null) { string fullPath = copyThis.SelectedItem.ItemPath; var result = DropDownItems.SingleOrDefault(item => fullPath == item.ItemPath); if (result != null) { SelectedItem = result; } } }