示例#1
0
        private void OnLoaded()
        {
            var rootItems = ItemVmFactory.CreateItemVms("Item ", 0);

            _rootItemVms.Clear();
            _rootItemVms.AddRange(rootItems);
        }
示例#2
0
        protected override Task <perTreeViewItemViewModelBase[]> LazyLoadFetchChildren()
        {
            var children = ItemVmFactory.CreateItemVms(Model.Caption, Model.Level + 1)
                           .Cast <perTreeViewItemViewModelBase>()
                           .ToArray();

            return(Task.FromResult(children));
        }
示例#3
0
        protected override Task LazyLoadFetchChildren()
        {
            var children = ItemVmFactory.CreateItemVms(Model.Caption, Model.Level + 1);

            AddChildren(children);

            return(Task.CompletedTask);
        }