41 references to HasItems
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentOutlineView.xaml.cs (1)
319if (item.IsExpanded && item.HasItems)
PresentationFramework (26)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (5)
53&& owner.HasItems) 69&& !owner.HasItems) 214|| !owner.HasItems) 232|| !owner.HasItems) 249if (role == MenuItemRole.TopLevelItem || role == MenuItemRole.SubmenuItem || !owner.HasItems)
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (3)
282if (!treeViewItem.HasItems) 298if (!treeViewItem.HasItems) 311if (treeViewItem.HasItems)
System\Windows\Controls\HeaderedItemsControl.cs (2)
349itemCount = HasItems ? Items.Count : 0; 360itemCount = HasItems ? Items.Count : 0;
System\Windows\Controls\ItemsControl.cs (5)
176return HasItems; 282if (!HasItems) 1467HasItems && Items.Contains(container); 2604if (HasItems) 4006int itemsCount = HasItems ? Items.Count : 0;
System\Windows\Controls\MenuItem.cs (2)
779if (!IsCheckable && HasItems) 2359if (!parent.HasItems)
System\Windows\Controls\Primitives\Selector.cs (5)
505if (HasItems) 530if (HasItems) 576if (!HasItems) 675if (item == DependencyProperty.UnsetValue && s.HasItems) 1507if (HasItems)
System\Windows\Controls\TabControl.cs (1)
512if (HasItems && _selectedItems.Count == 0)
System\Windows\Controls\TreeView.cs (1)
465if (HasItems)
System\Windows\Controls\TreeViewItem.cs (2)
87get { return HasItems; } 1131if (HasItems)
System.Windows.Controls.Ribbon (14)
Microsoft\Windows\Automation\Peers\RibbonMenuButtonAutomationPeer.cs (4)
152if (patternInterface == PatternInterface.ExpandCollapse && OwningMenuButton.HasItems) 174if (!owner.HasItems) 188if (!owner.HasItems) 203if (!owner.HasItems)
Microsoft\Windows\Automation\Peers\RibbonMenuItemDataAutomationPeer.cs (5)
92&& menuItemOwner.HasItems) 107&& !menuItemOwner.HasItems) 154|| !menuItemOwner.HasItems) 185|| !menuItemOwner.HasItems) 216if (role == MenuItemRole.TopLevelItem || role == MenuItemRole.SubmenuItem || !menuItemOwner.HasItems)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2153if (HasItems)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
567if (itemsControl.HasItems)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
1224return (HasItems && !IsCheckable);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (2)
186if (HasItems && e.Key == Key.Enter) 316return HasItems;