Example #1
0
 /// <summary>
 /// Determines whether specified item should be shown in the master-detail view, given the current state
 /// </summary>
 /// <param name="item"></param>
 /// <returns></returns>
 protected bool IsMasterDetailCandidate(NavigationItem item)
 {
     return(!item.IsRoot() && (item.IsLeaf() || (!item.HasGrandchildren() && this.WindowState == WindowStateWide)));
 }