1 write to _firstGallery
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1607_firstGallery = value;
69 references to _firstGallery
System.Windows.Controls.Ribbon (69)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (69)
350if (_firstGallery != null && !UpdatingSelectedItem) 352_firstGallery.SelectedItem = value; 362if (_firstGallery != null) 364return _firstGallery.HighlightedItem; 371if (_firstGallery != null) 373_firstGallery.HighlightedItem = value; 392if (_firstGallery != null && _firstGallery.SelectedCategory != null) 394text = TextSearchInternal.GetPrimaryTextFromItem(_firstGallery.SelectedCategory, SelectedItem, true); 395_firstGallery.ScrollIntoView(SelectedItem); 426if (_firstGallery != null && _firstGallery.HighlightedCategory != null) 428text = TextSearchInternal.GetPrimaryTextFromItem(_firstGallery.HighlightedCategory, HighlightedItem, true); 429_firstGallery.ScrollIntoView(HighlightedItem); 506if (_firstGallery != null) 508RibbonGalleryCategory category = isHighlightedItem ? _firstGallery.HighlightedCategory : _firstGallery.SelectedCategory; 670if (IsTextSearchEnabled && _firstGallery != null) 682object matchedItem = TextSearchInternal.FindMatchingPrefix(_firstGallery, newText, true, out matchedGalleryCategory); 734if (matchedItem != _firstGallery.HighlightedItem) 744_firstGallery.ShouldExecuteCommand = IsDropDownOpen; 761_firstGallery.HighlightedItem = matchedItem; 766_firstGallery.ShouldExecuteCommand = true; 771_firstGallery.ScrollIntoView(matchedItem); 896_firstGallery?.ScrollIntoView(_firstGallery.HighlightedItem); 1029if (IsDropDownOpen && _firstGallery != null) 1031focusedGalleryItem = _firstGallery.HighlightedContainer; 1032if (focusedGalleryItem == null && _firstGallery.SelectedContainers.Count > 0) 1034focusedGalleryItem = _firstGallery.SelectedContainers[0]; 1080_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1109_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1143RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Up); 1151RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Down); 1176return _firstGallery != null && 1187if (_firstGallery != null && 1188_firstGallery.IsKeyboardFocusWithin) 1190Panel galleryItemsHostSite = _firstGallery.ItemsHostSite; 1285TextSearchInternal instance = TextSearchInternal.EnsureInstance(_firstGallery); 1390if (_firstGallery != null) 1392selectedItem = _firstGallery.SelectedItem; 1393selectedValue = _firstGallery.SelectedValue; 1394selectedValuePath = _firstGallery.SelectedValuePath; 1431if (_firstGallery != null && 1432!_firstGallery.HasHighlightChangedViaMouse && 1488if (_firstGallery != null && !IsSelectedItemCached) 1493_firstGallery.ShouldExecuteCommand = false; 1495_cachedSelectedItem = _firstGallery.SelectedItem; 1496_firstGallery.SelectedItem = null; 1500_firstGallery.ShouldExecuteCommand = true; 1503_firstGallery.HighlightedItem = _cachedSelectedItem; 1509if (_firstGallery != null && IsSelectedItemCached) 1515_firstGallery.ShouldExecuteCommand = false; 1522_firstGallery.ShouldExecuteCommand = true; 1593get { return _firstGallery; } 1596if (_firstGallery != null) 1598_firstGallery.ShouldGalleryItemsAcquireFocus = true; 1600_firstGallery.HighlightChanged -= new EventHandler(OnGalleryHighlightChanged); 1601_firstGallery.SelectionChanged -= new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1602_firstGallery.RemoveHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1603_firstGallery.RemoveHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1604_firstGallery.RemoveHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus)); 1609if (_firstGallery != null) 1611_firstGallery.ShouldGalleryItemsAcquireFocus = false; 1613_firstGallery.HighlightChanged += new EventHandler(OnGalleryHighlightChanged); 1614_firstGallery.SelectionChanged += new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1615_firstGallery.AddHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1616_firstGallery.AddHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1617_firstGallery.AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus), true);