private void OnLoaded() { var rootItems = ItemVmFactory.CreateItemVms("Item ", 0); _rootItemVms.Clear(); _rootItemVms.AddRange(rootItems); }
protected override Task <perTreeViewItemViewModelBase[]> LazyLoadFetchChildren() { var children = ItemVmFactory.CreateItemVms(Model.Caption, Model.Level + 1) .Cast <perTreeViewItemViewModelBase>() .ToArray(); return(Task.FromResult(children)); }
protected override Task LazyLoadFetchChildren() { var children = ItemVmFactory.CreateItemVms(Model.Caption, Model.Level + 1); AddChildren(children); return(Task.CompletedTask); }