1 write to _firstGallery
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1606
_firstGallery
= value;
69 references to _firstGallery
System.Windows.Controls.Ribbon (69)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (69)
349
if (
_firstGallery
!= null && !UpdatingSelectedItem)
351
_firstGallery
.SelectedItem = value;
361
if (
_firstGallery
!= null)
363
return
_firstGallery
.HighlightedItem;
370
if (
_firstGallery
!= null)
372
_firstGallery
.HighlightedItem = value;
391
if (
_firstGallery
!= null &&
_firstGallery
.SelectedCategory != null)
393
text = TextSearchInternal.GetPrimaryTextFromItem(
_firstGallery
.SelectedCategory, SelectedItem, true);
394
_firstGallery
.ScrollIntoView(SelectedItem);
425
if (
_firstGallery
!= null &&
_firstGallery
.HighlightedCategory != null)
427
text = TextSearchInternal.GetPrimaryTextFromItem(
_firstGallery
.HighlightedCategory, HighlightedItem, true);
428
_firstGallery
.ScrollIntoView(HighlightedItem);
505
if (
_firstGallery
!= null)
507
RibbonGalleryCategory category = isHighlightedItem ?
_firstGallery
.HighlightedCategory :
_firstGallery
.SelectedCategory;
669
if (IsTextSearchEnabled &&
_firstGallery
!= null)
681
object matchedItem = TextSearchInternal.FindMatchingPrefix(
_firstGallery
, newText, true, out matchedGalleryCategory);
733
if (matchedItem !=
_firstGallery
.HighlightedItem)
743
_firstGallery
.ShouldExecuteCommand = IsDropDownOpen;
760
_firstGallery
.HighlightedItem = matchedItem;
765
_firstGallery
.ShouldExecuteCommand = true;
770
_firstGallery
.ScrollIntoView(matchedItem);
895
_firstGallery
?.ScrollIntoView(
_firstGallery
.HighlightedItem);
1028
if (IsDropDownOpen &&
_firstGallery
!= null)
1030
focusedGalleryItem =
_firstGallery
.HighlightedContainer;
1031
if (focusedGalleryItem == null &&
_firstGallery
.SelectedContainers.Count > 0)
1033
focusedGalleryItem =
_firstGallery
.SelectedContainers[0];
1079
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1108
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1142
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Up);
1150
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Down);
1175
return
_firstGallery
!= null &&
1186
if (
_firstGallery
!= null &&
1187
_firstGallery
.IsKeyboardFocusWithin)
1189
Panel galleryItemsHostSite =
_firstGallery
.ItemsHostSite;
1284
TextSearchInternal instance = TextSearchInternal.EnsureInstance(
_firstGallery
);
1389
if (
_firstGallery
!= null)
1391
selectedItem =
_firstGallery
.SelectedItem;
1392
selectedValue =
_firstGallery
.SelectedValue;
1393
selectedValuePath =
_firstGallery
.SelectedValuePath;
1430
if (
_firstGallery
!= null &&
1431
!
_firstGallery
.HasHighlightChangedViaMouse &&
1487
if (
_firstGallery
!= null && !IsSelectedItemCached)
1492
_firstGallery
.ShouldExecuteCommand = false;
1494
_cachedSelectedItem =
_firstGallery
.SelectedItem;
1495
_firstGallery
.SelectedItem = null;
1499
_firstGallery
.ShouldExecuteCommand = true;
1502
_firstGallery
.HighlightedItem = _cachedSelectedItem;
1508
if (
_firstGallery
!= null && IsSelectedItemCached)
1514
_firstGallery
.ShouldExecuteCommand = false;
1521
_firstGallery
.ShouldExecuteCommand = true;
1592
get { return
_firstGallery
; }
1595
if (
_firstGallery
!= null)
1597
_firstGallery
.ShouldGalleryItemsAcquireFocus = true;
1599
_firstGallery
.HighlightChanged -= new EventHandler(OnGalleryHighlightChanged);
1600
_firstGallery
.SelectionChanged -= new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged);
1601
_firstGallery
.RemoveHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1602
_firstGallery
.RemoveHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1603
_firstGallery
.RemoveHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus));
1608
if (
_firstGallery
!= null)
1610
_firstGallery
.ShouldGalleryItemsAcquireFocus = false;
1612
_firstGallery
.HighlightChanged += new EventHandler(OnGalleryHighlightChanged);
1613
_firstGallery
.SelectionChanged += new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged);
1614
_firstGallery
.AddHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1615
_firstGallery
.AddHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1616
_firstGallery
.AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus), true);