Exemplo n.º 1
0
        public StoreTreeViewModel(TreeViewModelBase parent, StoreTreeItem value)
            : base(parent)
        {
            if (value == null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            _children         = new ObservableCollectionEx <TreeViewModelBase>();
            _readonlyChildren = new ReadOnlyObservableCollection <TreeViewModelBase>(_children);

            this.Value = value;
        }
Exemplo n.º 2
0
        public StoreTreeViewItem(StoreTreeItem value)
            : base()
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            this.ItemsSource = _listViewItemCollection;
            base.Header      = _header;

            base.RequestBringIntoView += (object sender, RequestBringIntoViewEventArgs e) =>
            {
                e.Handled = true;
            };

            this.Value = value;
        }