public TreeSelectionNode(
            TreeSelectionModel <T> owner,
            TreeSelectionNode <T> parent,
            int index)
            : this(owner)
        {
            Path = parent.Path.CloneWithChildIndex(index);

            if (parent.ItemsView is object)
            {
                // HACK
                Source = _owner.ChildSelector.GetChildrenObservable(parent.ItemsView[index]).Single();
            }
        }
Example #2
0
 public TreeSelectionModel(Expression <Func <T, IEnumerable <T>?> > childSelector)
 {
     _root         = new TreeSelectionNode <T>(this);
     ChildSelector = new InpcTreeChildSelector <T>(childSelector);
 }