1 write to _firstGallery
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1607
_firstGallery
= value;
69 references to _firstGallery
System.Windows.Controls.Ribbon (69)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (69)
350
if (
_firstGallery
!= null && !UpdatingSelectedItem)
352
_firstGallery
.SelectedItem = value;
362
if (
_firstGallery
!= null)
364
return
_firstGallery
.HighlightedItem;
371
if (
_firstGallery
!= null)
373
_firstGallery
.HighlightedItem = value;
392
if (
_firstGallery
!= null &&
_firstGallery
.SelectedCategory != null)
394
text = TextSearchInternal.GetPrimaryTextFromItem(
_firstGallery
.SelectedCategory, SelectedItem, true);
395
_firstGallery
.ScrollIntoView(SelectedItem);
426
if (
_firstGallery
!= null &&
_firstGallery
.HighlightedCategory != null)
428
text = TextSearchInternal.GetPrimaryTextFromItem(
_firstGallery
.HighlightedCategory, HighlightedItem, true);
429
_firstGallery
.ScrollIntoView(HighlightedItem);
506
if (
_firstGallery
!= null)
508
RibbonGalleryCategory category = isHighlightedItem ?
_firstGallery
.HighlightedCategory :
_firstGallery
.SelectedCategory;
670
if (IsTextSearchEnabled &&
_firstGallery
!= null)
682
object matchedItem = TextSearchInternal.FindMatchingPrefix(
_firstGallery
, newText, true, out matchedGalleryCategory);
734
if (matchedItem !=
_firstGallery
.HighlightedItem)
744
_firstGallery
.ShouldExecuteCommand = IsDropDownOpen;
761
_firstGallery
.HighlightedItem = matchedItem;
766
_firstGallery
.ShouldExecuteCommand = true;
771
_firstGallery
.ScrollIntoView(matchedItem);
896
_firstGallery
?.ScrollIntoView(
_firstGallery
.HighlightedItem);
1029
if (IsDropDownOpen &&
_firstGallery
!= null)
1031
focusedGalleryItem =
_firstGallery
.HighlightedContainer;
1032
if (focusedGalleryItem == null &&
_firstGallery
.SelectedContainers.Count > 0)
1034
focusedGalleryItem =
_firstGallery
.SelectedContainers[0];
1080
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1109
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1143
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Up);
1151
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Down);
1176
return
_firstGallery
!= null &&
1187
if (
_firstGallery
!= null &&
1188
_firstGallery
.IsKeyboardFocusWithin)
1190
Panel galleryItemsHostSite =
_firstGallery
.ItemsHostSite;
1285
TextSearchInternal instance = TextSearchInternal.EnsureInstance(
_firstGallery
);
1390
if (
_firstGallery
!= null)
1392
selectedItem =
_firstGallery
.SelectedItem;
1393
selectedValue =
_firstGallery
.SelectedValue;
1394
selectedValuePath =
_firstGallery
.SelectedValuePath;
1431
if (
_firstGallery
!= null &&
1432
!
_firstGallery
.HasHighlightChangedViaMouse &&
1488
if (
_firstGallery
!= null && !IsSelectedItemCached)
1493
_firstGallery
.ShouldExecuteCommand = false;
1495
_cachedSelectedItem =
_firstGallery
.SelectedItem;
1496
_firstGallery
.SelectedItem = null;
1500
_firstGallery
.ShouldExecuteCommand = true;
1503
_firstGallery
.HighlightedItem = _cachedSelectedItem;
1509
if (
_firstGallery
!= null && IsSelectedItemCached)
1515
_firstGallery
.ShouldExecuteCommand = false;
1522
_firstGallery
.ShouldExecuteCommand = true;
1593
get { return
_firstGallery
; }
1596
if (
_firstGallery
!= null)
1598
_firstGallery
.ShouldGalleryItemsAcquireFocus = true;
1600
_firstGallery
.HighlightChanged -= new EventHandler(OnGalleryHighlightChanged);
1601
_firstGallery
.SelectionChanged -= new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged);
1602
_firstGallery
.RemoveHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1603
_firstGallery
.RemoveHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1604
_firstGallery
.RemoveHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus));
1609
if (
_firstGallery
!= null)
1611
_firstGallery
.ShouldGalleryItemsAcquireFocus = false;
1613
_firstGallery
.HighlightChanged += new EventHandler(OnGalleryHighlightChanged);
1614
_firstGallery
.SelectionChanged += new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged);
1615
_firstGallery
.AddHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1616
_firstGallery
.AddHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1617
_firstGallery
.AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus), true);