Пример #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);
        }