public SearchTreeViewModel(TreeViewModelBase parent, SearchTreeItem value) : base(parent) { if (value == null) throw new ArgumentNullException(nameof(value)); _children = new ObservableCollectionEx<TreeViewModelBase>(); _readonlyChildren = new ReadOnlyObservableCollection<TreeViewModelBase>(_children); this.Value = value; }
public SearchTreeViewItem(SearchTreeItem value) : base() { if (value == null) throw new ArgumentNullException("value"); base.ItemsSource = _listViewItemCollection; base.Header = _header; base.RequestBringIntoView += (object sender, RequestBringIntoViewEventArgs e) => { e.Handled = true; }; this.Value = value; }