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)
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;
663
if (IsTextSearchEnabled &&
_firstGallery
!= null)
672
object matchedItem = TextSearchInternal.FindMatchingPrefix(
_firstGallery
, newText, true, out matchedGalleryCategory);
724
if (matchedItem !=
_firstGallery
.HighlightedItem)
734
_firstGallery
.ShouldExecuteCommand = IsDropDownOpen;
751
_firstGallery
.HighlightedItem = matchedItem;
756
_firstGallery
.ShouldExecuteCommand = true;
761
_firstGallery
.ScrollIntoView(matchedItem);
886
_firstGallery
?.ScrollIntoView(
_firstGallery
.HighlightedItem);
1019
if (IsDropDownOpen &&
_firstGallery
!= null)
1021
focusedGalleryItem =
_firstGallery
.HighlightedContainer;
1022
if (focusedGalleryItem == null &&
_firstGallery
.SelectedContainers.Count > 0)
1024
focusedGalleryItem =
_firstGallery
.SelectedContainers[0];
1070
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1099
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1133
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Up);
1141
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Down);
1166
return
_firstGallery
!= null &&
1177
if (
_firstGallery
!= null &&
1178
_firstGallery
.IsKeyboardFocusWithin)
1180
Panel galleryItemsHostSite =
_firstGallery
.ItemsHostSite;
1275
TextSearchInternal instance = TextSearchInternal.EnsureInstance(
_firstGallery
);
1380
if (
_firstGallery
!= null)
1382
selectedItem =
_firstGallery
.SelectedItem;
1383
selectedValue =
_firstGallery
.SelectedValue;
1384
selectedValuePath =
_firstGallery
.SelectedValuePath;
1421
if (
_firstGallery
!= null &&
1422
!
_firstGallery
.HasHighlightChangedViaMouse &&
1478
if (
_firstGallery
!= null && !IsSelectedItemCached)
1483
_firstGallery
.ShouldExecuteCommand = false;
1485
_cachedSelectedItem =
_firstGallery
.SelectedItem;
1486
_firstGallery
.SelectedItem = null;
1490
_firstGallery
.ShouldExecuteCommand = true;
1493
_firstGallery
.HighlightedItem = _cachedSelectedItem;
1499
if (
_firstGallery
!= null && IsSelectedItemCached)
1505
_firstGallery
.ShouldExecuteCommand = false;
1512
_firstGallery
.ShouldExecuteCommand = true;
1583
get { return
_firstGallery
; }
1586
if (
_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));
1599
if (
_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);