1 write to _firstGallery
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1606_firstGallery = value;
69 references to _firstGallery
System.Windows.Controls.Ribbon (69)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (69)
349if (_firstGallery != null && !UpdatingSelectedItem) 351_firstGallery.SelectedItem = value; 361if (_firstGallery != null) 363return _firstGallery.HighlightedItem; 370if (_firstGallery != null) 372_firstGallery.HighlightedItem = value; 391if (_firstGallery != null && _firstGallery.SelectedCategory != null) 393text = TextSearchInternal.GetPrimaryTextFromItem(_firstGallery.SelectedCategory, SelectedItem, true); 394_firstGallery.ScrollIntoView(SelectedItem); 425if (_firstGallery != null && _firstGallery.HighlightedCategory != null) 427text = TextSearchInternal.GetPrimaryTextFromItem(_firstGallery.HighlightedCategory, HighlightedItem, true); 428_firstGallery.ScrollIntoView(HighlightedItem); 505if (_firstGallery != null) 507RibbonGalleryCategory category = isHighlightedItem ? _firstGallery.HighlightedCategory : _firstGallery.SelectedCategory; 669if (IsTextSearchEnabled && _firstGallery != null) 681object matchedItem = TextSearchInternal.FindMatchingPrefix(_firstGallery, newText, true, out matchedGalleryCategory); 733if (matchedItem != _firstGallery.HighlightedItem) 743_firstGallery.ShouldExecuteCommand = IsDropDownOpen; 760_firstGallery.HighlightedItem = matchedItem; 765_firstGallery.ShouldExecuteCommand = true; 770_firstGallery.ScrollIntoView(matchedItem); 895_firstGallery?.ScrollIntoView(_firstGallery.HighlightedItem); 1028if (IsDropDownOpen && _firstGallery != null) 1030focusedGalleryItem = _firstGallery.HighlightedContainer; 1031if (focusedGalleryItem == null && _firstGallery.SelectedContainers.Count > 0) 1033focusedGalleryItem = _firstGallery.SelectedContainers[0]; 1079_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1108_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1142RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Up); 1150RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Down); 1175return _firstGallery != null && 1186if (_firstGallery != null && 1187_firstGallery.IsKeyboardFocusWithin) 1189Panel galleryItemsHostSite = _firstGallery.ItemsHostSite; 1284TextSearchInternal instance = TextSearchInternal.EnsureInstance(_firstGallery); 1389if (_firstGallery != null) 1391selectedItem = _firstGallery.SelectedItem; 1392selectedValue = _firstGallery.SelectedValue; 1393selectedValuePath = _firstGallery.SelectedValuePath; 1430if (_firstGallery != null && 1431!_firstGallery.HasHighlightChangedViaMouse && 1487if (_firstGallery != null && !IsSelectedItemCached) 1492_firstGallery.ShouldExecuteCommand = false; 1494_cachedSelectedItem = _firstGallery.SelectedItem; 1495_firstGallery.SelectedItem = null; 1499_firstGallery.ShouldExecuteCommand = true; 1502_firstGallery.HighlightedItem = _cachedSelectedItem; 1508if (_firstGallery != null && IsSelectedItemCached) 1514_firstGallery.ShouldExecuteCommand = false; 1521_firstGallery.ShouldExecuteCommand = true; 1592get { return _firstGallery; } 1595if (_firstGallery != null) 1597_firstGallery.ShouldGalleryItemsAcquireFocus = true; 1599_firstGallery.HighlightChanged -= new EventHandler(OnGalleryHighlightChanged); 1600_firstGallery.SelectionChanged -= new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1601_firstGallery.RemoveHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1602_firstGallery.RemoveHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1603_firstGallery.RemoveHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus)); 1608if (_firstGallery != null) 1610_firstGallery.ShouldGalleryItemsAcquireFocus = false; 1612_firstGallery.HighlightChanged += new EventHandler(OnGalleryHighlightChanged); 1613_firstGallery.SelectionChanged += new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1614_firstGallery.AddHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1615_firstGallery.AddHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1616_firstGallery.AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus), true);