public static string BuildRelativePath(TreeViewItemViewModel parent, TreeViewItemViewModel viewModel)
 {
     return(BuildRelativePath(parent, viewModel, item => true));
 }
 public static IEnumerable <TreeViewItemViewModel> Descendants(TreeViewItemViewModel viewModel)
 {
     return(EnumerableUtility.Descendants <TreeViewItemViewModel>(viewModel, item => item.Items));
 }
        public static string BuildPath(TreeViewItemViewModel viewModel)
        {
            var items = CollectDisplayName(null, viewModel).Reverse();

            return(CategoryName.Create(items.ToArray()));
        }
 public static IEnumerable <TreeViewItemViewModel> FamilyTree(TreeViewItemViewModel viewModel)
 {
     return(EnumerableUtility.FamilyTree <TreeViewItemViewModel>(viewModel, item => item.Items));
 }