Beispiel #1
0
        private bool InSelectedPath(INavigationItemId id)
        {
            var selectedPath = GetSelectedPath(this.rootItem, this.currentItem);

            return(selectedPath.Contains(id));
        }
Beispiel #2
0
 private bool IncludeChildren(int currentLevel, INavigationItemId id)
 {
     return(currentLevel < this.configuration.EndLevel &&
            (this.configuration.IncludeChildItems == IncludeItemsMode.All || InSelectedPath(id)));
 }