How to bind two different collection at one TreeView branch
问题 I'm writing a WpfCustomControlLibrary based on MVVM pattern. I have a View contains TreeView object which must handle quite expanded model. Model: public class TreeBranchesView { public ObservableCollection<DiscountGroup> DiscoutGroups { get; set; } } public class DiscountGroup : ViewModelBase { public int ID { get; set; } public string GroupName { get; set; } public decimal DefaultValue { get; set; } private bool _isCheckedInMenu; public bool IsCheckedInMenu { get { return _isCheckedInMenu;