1 write to _firstGallery
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1609_firstGallery = value;
70 references to _firstGallery
System.Windows.Controls.Ribbon (70)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (70)
353if (_firstGallery != null && !UpdatingSelectedItem) 355_firstGallery.SelectedItem = value; 365if (_firstGallery != null) 367return _firstGallery.HighlightedItem; 374if (_firstGallery != null) 376_firstGallery.HighlightedItem = value; 395if (_firstGallery != null && _firstGallery.SelectedCategory != null) 397text = TextSearchInternal.GetPrimaryTextFromItem(_firstGallery.SelectedCategory, SelectedItem, true); 398_firstGallery.ScrollIntoView(SelectedItem); 429if (_firstGallery != null && _firstGallery.HighlightedCategory != null) 431text = TextSearchInternal.GetPrimaryTextFromItem(_firstGallery.HighlightedCategory, HighlightedItem, true); 432_firstGallery.ScrollIntoView(HighlightedItem); 509if (_firstGallery != null) 511RibbonGalleryCategory 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); 890if (_firstGallery != null) 897_firstGallery.ScrollIntoView(_firstGallery.HighlightedItem); 1031if (IsDropDownOpen && _firstGallery != null) 1033focusedGalleryItem = _firstGallery.HighlightedContainer; 1034if (focusedGalleryItem == null && _firstGallery.SelectedContainers.Count > 0) 1036focusedGalleryItem = _firstGallery.SelectedContainers[0]; 1082_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1111_firstGallery.OnNavigationKeyDown(e, focusedGalleryItem); 1145RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Up); 1153RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Down); 1178return _firstGallery != null && 1189if (_firstGallery != null && 1190_firstGallery.IsKeyboardFocusWithin) 1192Panel galleryItemsHostSite = _firstGallery.ItemsHostSite; 1287TextSearchInternal instance = TextSearchInternal.EnsureInstance(_firstGallery); 1392if (_firstGallery != null) 1394selectedItem = _firstGallery.SelectedItem; 1395selectedValue = _firstGallery.SelectedValue; 1396selectedValuePath = _firstGallery.SelectedValuePath; 1433if (_firstGallery != null && 1434!_firstGallery.HasHighlightChangedViaMouse && 1490if (_firstGallery != null && !IsSelectedItemCached) 1495_firstGallery.ShouldExecuteCommand = false; 1497_cachedSelectedItem = _firstGallery.SelectedItem; 1498_firstGallery.SelectedItem = null; 1502_firstGallery.ShouldExecuteCommand = true; 1505_firstGallery.HighlightedItem = _cachedSelectedItem; 1511if (_firstGallery != null && IsSelectedItemCached) 1517_firstGallery.ShouldExecuteCommand = false; 1524_firstGallery.ShouldExecuteCommand = true; 1595get { return _firstGallery; } 1598if (_firstGallery != null) 1600_firstGallery.ShouldGalleryItemsAcquireFocus = true; 1602_firstGallery.HighlightChanged -= new EventHandler(OnGalleryHighlightChanged); 1603_firstGallery.SelectionChanged -= new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1604_firstGallery.RemoveHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1605_firstGallery.RemoveHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1606_firstGallery.RemoveHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus)); 1611if (_firstGallery != null) 1613_firstGallery.ShouldGalleryItemsAcquireFocus = false; 1615_firstGallery.HighlightChanged += new EventHandler(OnGalleryHighlightChanged); 1616_firstGallery.SelectionChanged += new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged); 1617_firstGallery.AddHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1618_firstGallery.AddHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged)); 1619_firstGallery.AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus), true);