1 write to _firstGallery
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1603
_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)
678
object matchedItem = TextSearchInternal.FindMatchingPrefix(
_firstGallery
, newText, true, out matchedGalleryCategory);
730
if (matchedItem !=
_firstGallery
.HighlightedItem)
740
_firstGallery
.ShouldExecuteCommand = IsDropDownOpen;
757
_firstGallery
.HighlightedItem = matchedItem;
762
_firstGallery
.ShouldExecuteCommand = true;
767
_firstGallery
.ScrollIntoView(matchedItem);
892
_firstGallery
?.ScrollIntoView(
_firstGallery
.HighlightedItem);
1025
if (IsDropDownOpen &&
_firstGallery
!= null)
1027
focusedGalleryItem =
_firstGallery
.HighlightedContainer;
1028
if (focusedGalleryItem == null &&
_firstGallery
.SelectedContainers.Count > 0)
1030
focusedGalleryItem =
_firstGallery
.SelectedContainers[0];
1076
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1105
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1139
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Up);
1147
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Down);
1172
return
_firstGallery
!= null &&
1183
if (
_firstGallery
!= null &&
1184
_firstGallery
.IsKeyboardFocusWithin)
1186
Panel galleryItemsHostSite =
_firstGallery
.ItemsHostSite;
1281
TextSearchInternal instance = TextSearchInternal.EnsureInstance(
_firstGallery
);
1386
if (
_firstGallery
!= null)
1388
selectedItem =
_firstGallery
.SelectedItem;
1389
selectedValue =
_firstGallery
.SelectedValue;
1390
selectedValuePath =
_firstGallery
.SelectedValuePath;
1427
if (
_firstGallery
!= null &&
1428
!
_firstGallery
.HasHighlightChangedViaMouse &&
1484
if (
_firstGallery
!= null && !IsSelectedItemCached)
1489
_firstGallery
.ShouldExecuteCommand = false;
1491
_cachedSelectedItem =
_firstGallery
.SelectedItem;
1492
_firstGallery
.SelectedItem = null;
1496
_firstGallery
.ShouldExecuteCommand = true;
1499
_firstGallery
.HighlightedItem = _cachedSelectedItem;
1505
if (
_firstGallery
!= null && IsSelectedItemCached)
1511
_firstGallery
.ShouldExecuteCommand = false;
1518
_firstGallery
.ShouldExecuteCommand = true;
1589
get { return
_firstGallery
; }
1592
if (
_firstGallery
!= null)
1594
_firstGallery
.ShouldGalleryItemsAcquireFocus = true;
1596
_firstGallery
.HighlightChanged -= new EventHandler(OnGalleryHighlightChanged);
1597
_firstGallery
.SelectionChanged -= new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged);
1598
_firstGallery
.RemoveHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1599
_firstGallery
.RemoveHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1600
_firstGallery
.RemoveHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus));
1605
if (
_firstGallery
!= null)
1607
_firstGallery
.ShouldGalleryItemsAcquireFocus = false;
1609
_firstGallery
.HighlightChanged += new EventHandler(OnGalleryHighlightChanged);
1610
_firstGallery
.SelectionChanged += new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged);
1611
_firstGallery
.AddHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1612
_firstGallery
.AddHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1613
_firstGallery
.AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus), true);