1 write to _firstGallery
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1603_firstGallery = value;
68 references to _firstGallery
System.Windows.Controls.Ribbon (68)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (68)
349if (_firstGallery != null && !UpdatingSelectedItem) 351_firstGallery.SelectedItem = value; 361if (_firstGallery != null) 363return _firstGallery.HighlightedItem; 370_firstGallery?.HighlightedItem = value; 388if (_firstGallery != null && _firstGallery.SelectedCategory != null) 390text = TextSearchInternal.GetPrimaryTextFromItem(_firstGallery.SelectedCategory, SelectedItem, true); 391_firstGallery.ScrollIntoView(SelectedItem); 422if (_firstGallery != null && _firstGallery.HighlightedCategory != null) 424text = TextSearchInternal.GetPrimaryTextFromItem(_firstGallery.HighlightedCategory, HighlightedItem, true); 425_firstGallery.ScrollIntoView(HighlightedItem); 502if (_firstGallery != null) 504RibbonGalleryCategory category = isHighlightedItem ? _firstGallery.HighlightedCategory : _firstGallery.SelectedCategory; 666if (IsTextSearchEnabled && _firstGallery != null) 678object matchedItem = TextSearchInternal.FindMatchingPrefix(_firstGallery, newText, true, out matchedGalleryCategory); 730if (matchedItem != _firstGallery.HighlightedItem) 740_firstGallery.ShouldExecuteCommand = IsDropDownOpen; 757_firstGallery.HighlightedItem = matchedItem; 762_firstGallery.ShouldExecuteCommand = true; 767_firstGallery.ScrollIntoView(matchedItem); 892_firstGallery?.ScrollIntoView(_firstGallery.HighlightedItem); 1025if (IsDropDownOpen && _firstGallery != null) 1027focusedGalleryItem = _firstGallery.HighlightedContainer; 1028if (focusedGalleryItem == null && _firstGallery.SelectedContainers.Count > 0) 1030focusedGalleryItem = _firstGallery.SelectedContainers[0]; 1076_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1105_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1139RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Up); 1147RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Down); 1172return _firstGallery != null && 1183if (_firstGallery != null && 1184_firstGallery.IsKeyboardFocusWithin) 1186Panel galleryItemsHostSite = _firstGallery.ItemsHostSite; 1281TextSearchInternal instance = TextSearchInternal.EnsureInstance(_firstGallery); 1386if (_firstGallery != null) 1388selectedItem = _firstGallery.SelectedItem; 1389selectedValue = _firstGallery.SelectedValue; 1390selectedValuePath = _firstGallery.SelectedValuePath; 1427if (_firstGallery != null && 1428!_firstGallery.HasHighlightChangedViaMouse && 1484if (_firstGallery != null && !IsSelectedItemCached) 1489_firstGallery.ShouldExecuteCommand = false; 1491_cachedSelectedItem = _firstGallery.SelectedItem; 1492_firstGallery.SelectedItem = null; 1496_firstGallery.ShouldExecuteCommand = true; 1499_firstGallery.HighlightedItem = _cachedSelectedItem; 1505if (_firstGallery != null && IsSelectedItemCached) 1511_firstGallery.ShouldExecuteCommand = false; 1518_firstGallery.ShouldExecuteCommand = true; 1589get { return _firstGallery; } 1592if (_firstGallery != null) 1594_firstGallery.ShouldGalleryItemsAcquireFocus = true; 1596_firstGallery.HighlightChanged -= new EventHandler(OnGalleryHighlightChanged); 1597_firstGallery.SelectionChanged -= new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1598_firstGallery.RemoveHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1599_firstGallery.RemoveHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1600_firstGallery.RemoveHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus)); 1605if (_firstGallery != null) 1607_firstGallery.ShouldGalleryItemsAcquireFocus = false; 1609_firstGallery.HighlightChanged += new EventHandler(OnGalleryHighlightChanged); 1610_firstGallery.SelectionChanged += new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1611_firstGallery.AddHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1612_firstGallery.AddHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1613_firstGallery.AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus), true);