public CollectionViewGroup(object group, PropertyPath itemsPath) { Group = group; if (itemsPath != null) { _bindingPath = new BindingPath(itemsPath.Path, null); _bindingPath.DataContext = group; GroupItems = ObservableVectorWrapper.Create(_bindingPath.Value); } else { GroupItems = ObservableVectorWrapper.Create(group); } }
public CollectionViewGroup(object group) { Group = group; GroupItems = ObservableVectorWrapper.Create(group); }