41 references to HasItems
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentOutlineView.xaml.cs (1)
324if (item.IsExpanded && item.HasItems)
PresentationFramework (26)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (5)
40&& owner.HasItems) 56&& !owner.HasItems) 201|| !owner.HasItems) 219|| !owner.HasItems) 236if (role == MenuItemRole.TopLevelItem || role == MenuItemRole.SubmenuItem || !owner.HasItems)
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (3)
270if (!treeViewItem.HasItems) 286if (!treeViewItem.HasItems) 299if (treeViewItem.HasItems)
System\Windows\Controls\HeaderedItemsControl.cs (2)
344itemCount = HasItems ? Items.Count : 0; 355itemCount = HasItems ? Items.Count : 0;
System\Windows\Controls\ItemsControl.cs (5)
167return HasItems; 273if (!HasItems) 1458HasItems && Items.Contains(container); 2595if (HasItems) 3997int itemsCount = HasItems ? Items.Count : 0;
System\Windows\Controls\MenuItem.cs (2)
769if (!IsCheckable && HasItems) 2349if (!parent.HasItems)
System\Windows\Controls\Primitives\Selector.cs (5)
496if (HasItems) 521if (HasItems) 567if (!HasItems) 666if (item == DependencyProperty.UnsetValue && s.HasItems) 1498if (HasItems)
System\Windows\Controls\TabControl.cs (1)
502if (HasItems && _selectedItems.Count == 0)
System\Windows\Controls\TreeView.cs (1)
460if (HasItems)
System\Windows\Controls\TreeViewItem.cs (2)
83get { return HasItems; } 1127if (HasItems)
System.Windows.Controls.Ribbon (14)
Microsoft\Windows\Automation\Peers\RibbonMenuButtonAutomationPeer.cs (4)
149if (patternInterface == PatternInterface.ExpandCollapse && OwningMenuButton.HasItems) 171if (!owner.HasItems) 185if (!owner.HasItems) 200if (!owner.HasItems)
Microsoft\Windows\Automation\Peers\RibbonMenuItemDataAutomationPeer.cs (5)
88&& menuItemOwner.HasItems) 103&& !menuItemOwner.HasItems) 150|| !menuItemOwner.HasItems) 181|| !menuItemOwner.HasItems) 212if (role == MenuItemRole.TopLevelItem || role == MenuItemRole.SubmenuItem || !menuItemOwner.HasItems)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2151if (HasItems)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
562if (itemsControl.HasItems)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
1221return (HasItems && !IsCheckable);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (2)
183if (HasItems && e.Key == Key.Enter) 313return HasItems;