1 write to _firstGallery
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1597_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; 663if (IsTextSearchEnabled && _firstGallery != null) 672object matchedItem = TextSearchInternal.FindMatchingPrefix(_firstGallery, newText, true, out matchedGalleryCategory); 724if (matchedItem != _firstGallery.HighlightedItem) 734_firstGallery.ShouldExecuteCommand = IsDropDownOpen; 751_firstGallery.HighlightedItem = matchedItem; 756_firstGallery.ShouldExecuteCommand = true; 761_firstGallery.ScrollIntoView(matchedItem); 886_firstGallery?.ScrollIntoView(_firstGallery.HighlightedItem); 1019if (IsDropDownOpen && _firstGallery != null) 1021focusedGalleryItem = _firstGallery.HighlightedContainer; 1022if (focusedGalleryItem == null && _firstGallery.SelectedContainers.Count > 0) 1024focusedGalleryItem = _firstGallery.SelectedContainers[0]; 1070_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1099_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1133RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Up); 1141RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Down); 1166return _firstGallery != null && 1177if (_firstGallery != null && 1178_firstGallery.IsKeyboardFocusWithin) 1180Panel galleryItemsHostSite = _firstGallery.ItemsHostSite; 1275TextSearchInternal instance = TextSearchInternal.EnsureInstance(_firstGallery); 1380if (_firstGallery != null) 1382selectedItem = _firstGallery.SelectedItem; 1383selectedValue = _firstGallery.SelectedValue; 1384selectedValuePath = _firstGallery.SelectedValuePath; 1421if (_firstGallery != null && 1422!_firstGallery.HasHighlightChangedViaMouse && 1478if (_firstGallery != null && !IsSelectedItemCached) 1483_firstGallery.ShouldExecuteCommand = false; 1485_cachedSelectedItem = _firstGallery.SelectedItem; 1486_firstGallery.SelectedItem = null; 1490_firstGallery.ShouldExecuteCommand = true; 1493_firstGallery.HighlightedItem = _cachedSelectedItem; 1499if (_firstGallery != null && IsSelectedItemCached) 1505_firstGallery.ShouldExecuteCommand = false; 1512_firstGallery.ShouldExecuteCommand = true; 1583get { return _firstGallery; } 1586if (_firstGallery != null) 1588_firstGallery.ShouldGalleryItemsAcquireFocus = true; 1590_firstGallery.HighlightChanged -= new EventHandler(OnGalleryHighlightChanged); 1591_firstGallery.SelectionChanged -= new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1592_firstGallery.RemoveHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1593_firstGallery.RemoveHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1594_firstGallery.RemoveHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus)); 1599if (_firstGallery != null) 1601_firstGallery.ShouldGalleryItemsAcquireFocus = false; 1603_firstGallery.HighlightChanged += new EventHandler(OnGalleryHighlightChanged); 1604_firstGallery.SelectionChanged += new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1605_firstGallery.AddHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1606_firstGallery.AddHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1607_firstGallery.AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus), true);