1 write to _firstGallery
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1600_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) 675object matchedItem = TextSearchInternal.FindMatchingPrefix(_firstGallery, newText, true, out matchedGalleryCategory); 727if (matchedItem != _firstGallery.HighlightedItem) 737_firstGallery.ShouldExecuteCommand = IsDropDownOpen; 754_firstGallery.HighlightedItem = matchedItem; 759_firstGallery.ShouldExecuteCommand = true; 764_firstGallery.ScrollIntoView(matchedItem); 889_firstGallery?.ScrollIntoView(_firstGallery.HighlightedItem); 1022if (IsDropDownOpen && _firstGallery != null) 1024focusedGalleryItem = _firstGallery.HighlightedContainer; 1025if (focusedGalleryItem == null && _firstGallery.SelectedContainers.Count > 0) 1027focusedGalleryItem = _firstGallery.SelectedContainers[0]; 1073_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1102_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1136RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Up); 1144RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Down); 1169return _firstGallery != null && 1180if (_firstGallery != null && 1181_firstGallery.IsKeyboardFocusWithin) 1183Panel galleryItemsHostSite = _firstGallery.ItemsHostSite; 1278TextSearchInternal instance = TextSearchInternal.EnsureInstance(_firstGallery); 1383if (_firstGallery != null) 1385selectedItem = _firstGallery.SelectedItem; 1386selectedValue = _firstGallery.SelectedValue; 1387selectedValuePath = _firstGallery.SelectedValuePath; 1424if (_firstGallery != null && 1425!_firstGallery.HasHighlightChangedViaMouse && 1481if (_firstGallery != null && !IsSelectedItemCached) 1486_firstGallery.ShouldExecuteCommand = false; 1488_cachedSelectedItem = _firstGallery.SelectedItem; 1489_firstGallery.SelectedItem = null; 1493_firstGallery.ShouldExecuteCommand = true; 1496_firstGallery.HighlightedItem = _cachedSelectedItem; 1502if (_firstGallery != null && IsSelectedItemCached) 1508_firstGallery.ShouldExecuteCommand = false; 1515_firstGallery.ShouldExecuteCommand = true; 1586get { return _firstGallery; } 1589if (_firstGallery != null) 1591_firstGallery.ShouldGalleryItemsAcquireFocus = true; 1593_firstGallery.HighlightChanged -= new EventHandler(OnGalleryHighlightChanged); 1594_firstGallery.SelectionChanged -= new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1595_firstGallery.RemoveHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1596_firstGallery.RemoveHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1597_firstGallery.RemoveHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus)); 1602if (_firstGallery != null) 1604_firstGallery.ShouldGalleryItemsAcquireFocus = false; 1606_firstGallery.HighlightChanged += new EventHandler(OnGalleryHighlightChanged); 1607_firstGallery.SelectionChanged += new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1608_firstGallery.AddHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1609_firstGallery.AddHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1610_firstGallery.AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus), true);