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)
349
if (
_firstGallery
!= null && !UpdatingSelectedItem)
351
_firstGallery
.SelectedItem = value;
361
if (
_firstGallery
!= null)
363
return
_firstGallery
.HighlightedItem;
370
_firstGallery
?.HighlightedItem = value;
388
if (
_firstGallery
!= null &&
_firstGallery
.SelectedCategory != null)
390
text = TextSearchInternal.GetPrimaryTextFromItem(
_firstGallery
.SelectedCategory, SelectedItem, true);
391
_firstGallery
.ScrollIntoView(SelectedItem);
422
if (
_firstGallery
!= null &&
_firstGallery
.HighlightedCategory != null)
424
text = TextSearchInternal.GetPrimaryTextFromItem(
_firstGallery
.HighlightedCategory, HighlightedItem, true);
425
_firstGallery
.ScrollIntoView(HighlightedItem);
502
if (
_firstGallery
!= null)
504
RibbonGalleryCategory category = isHighlightedItem ?
_firstGallery
.HighlightedCategory :
_firstGallery
.SelectedCategory;
666
if (IsTextSearchEnabled &&
_firstGallery
!= null)
675
object matchedItem = TextSearchInternal.FindMatchingPrefix(
_firstGallery
, newText, true, out matchedGalleryCategory);
727
if (matchedItem !=
_firstGallery
.HighlightedItem)
737
_firstGallery
.ShouldExecuteCommand = IsDropDownOpen;
754
_firstGallery
.HighlightedItem = matchedItem;
759
_firstGallery
.ShouldExecuteCommand = true;
764
_firstGallery
.ScrollIntoView(matchedItem);
889
_firstGallery
?.ScrollIntoView(
_firstGallery
.HighlightedItem);
1022
if (IsDropDownOpen &&
_firstGallery
!= null)
1024
focusedGalleryItem =
_firstGallery
.HighlightedContainer;
1025
if (focusedGalleryItem == null &&
_firstGallery
.SelectedContainers.Count > 0)
1027
focusedGalleryItem =
_firstGallery
.SelectedContainers[0];
1073
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1102
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1136
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Up);
1144
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Down);
1169
return
_firstGallery
!= null &&
1180
if (
_firstGallery
!= null &&
1181
_firstGallery
.IsKeyboardFocusWithin)
1183
Panel galleryItemsHostSite =
_firstGallery
.ItemsHostSite;
1278
TextSearchInternal instance = TextSearchInternal.EnsureInstance(
_firstGallery
);
1383
if (
_firstGallery
!= null)
1385
selectedItem =
_firstGallery
.SelectedItem;
1386
selectedValue =
_firstGallery
.SelectedValue;
1387
selectedValuePath =
_firstGallery
.SelectedValuePath;
1424
if (
_firstGallery
!= null &&
1425
!
_firstGallery
.HasHighlightChangedViaMouse &&
1481
if (
_firstGallery
!= null && !IsSelectedItemCached)
1486
_firstGallery
.ShouldExecuteCommand = false;
1488
_cachedSelectedItem =
_firstGallery
.SelectedItem;
1489
_firstGallery
.SelectedItem = null;
1493
_firstGallery
.ShouldExecuteCommand = true;
1496
_firstGallery
.HighlightedItem = _cachedSelectedItem;
1502
if (
_firstGallery
!= null && IsSelectedItemCached)
1508
_firstGallery
.ShouldExecuteCommand = false;
1515
_firstGallery
.ShouldExecuteCommand = true;
1586
get { return
_firstGallery
; }
1589
if (
_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));
1602
if (
_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);