1 write to _firstGallery
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1609
_firstGallery
= value;
70 references to _firstGallery
System.Windows.Controls.Ribbon (70)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (70)
353
if (
_firstGallery
!= null && !UpdatingSelectedItem)
355
_firstGallery
.SelectedItem = value;
365
if (
_firstGallery
!= null)
367
return
_firstGallery
.HighlightedItem;
374
if (
_firstGallery
!= null)
376
_firstGallery
.HighlightedItem = value;
395
if (
_firstGallery
!= null &&
_firstGallery
.SelectedCategory != null)
397
text = TextSearchInternal.GetPrimaryTextFromItem(
_firstGallery
.SelectedCategory, SelectedItem, true);
398
_firstGallery
.ScrollIntoView(SelectedItem);
429
if (
_firstGallery
!= null &&
_firstGallery
.HighlightedCategory != null)
431
text = TextSearchInternal.GetPrimaryTextFromItem(
_firstGallery
.HighlightedCategory, HighlightedItem, true);
432
_firstGallery
.ScrollIntoView(HighlightedItem);
509
if (
_firstGallery
!= null)
511
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);
890
if (
_firstGallery
!= null)
897
_firstGallery
.ScrollIntoView(
_firstGallery
.HighlightedItem);
1031
if (IsDropDownOpen &&
_firstGallery
!= null)
1033
focusedGalleryItem =
_firstGallery
.HighlightedContainer;
1034
if (focusedGalleryItem == null &&
_firstGallery
.SelectedContainers.Count > 0)
1036
focusedGalleryItem =
_firstGallery
.SelectedContainers[0];
1082
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1111
_firstGallery
.OnNavigationKeyDown(e, focusedGalleryItem);
1145
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Up);
1153
RibbonHelper.NavigatePageAndHighlightRibbonGalleryItem(
_firstGallery
, focusedGalleryItem, FocusNavigationDirection.Down);
1178
return
_firstGallery
!= null &&
1189
if (
_firstGallery
!= null &&
1190
_firstGallery
.IsKeyboardFocusWithin)
1192
Panel galleryItemsHostSite =
_firstGallery
.ItemsHostSite;
1287
TextSearchInternal instance = TextSearchInternal.EnsureInstance(
_firstGallery
);
1392
if (
_firstGallery
!= null)
1394
selectedItem =
_firstGallery
.SelectedItem;
1395
selectedValue =
_firstGallery
.SelectedValue;
1396
selectedValuePath =
_firstGallery
.SelectedValuePath;
1433
if (
_firstGallery
!= null &&
1434
!
_firstGallery
.HasHighlightChangedViaMouse &&
1490
if (
_firstGallery
!= null && !IsSelectedItemCached)
1495
_firstGallery
.ShouldExecuteCommand = false;
1497
_cachedSelectedItem =
_firstGallery
.SelectedItem;
1498
_firstGallery
.SelectedItem = null;
1502
_firstGallery
.ShouldExecuteCommand = true;
1505
_firstGallery
.HighlightedItem = _cachedSelectedItem;
1511
if (
_firstGallery
!= null && IsSelectedItemCached)
1517
_firstGallery
.ShouldExecuteCommand = false;
1524
_firstGallery
.ShouldExecuteCommand = true;
1595
get { return
_firstGallery
; }
1598
if (
_firstGallery
!= null)
1600
_firstGallery
.ShouldGalleryItemsAcquireFocus = true;
1602
_firstGallery
.HighlightChanged -= new EventHandler(OnGalleryHighlightChanged);
1603
_firstGallery
.SelectionChanged -= new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged);
1604
_firstGallery
.RemoveHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1605
_firstGallery
.RemoveHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1606
_firstGallery
.RemoveHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus));
1611
if (
_firstGallery
!= null)
1613
_firstGallery
.ShouldGalleryItemsAcquireFocus = false;
1615
_firstGallery
.HighlightChanged += new EventHandler(OnGalleryHighlightChanged);
1616
_firstGallery
.SelectionChanged += new RoutedPropertyChangedEventHandler<object>(OnGallerySelectionChanged);
1617
_firstGallery
.AddHandler(RibbonGalleryItem.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1618
_firstGallery
.AddHandler(RibbonGalleryItem.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1619
_firstGallery
.AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGalleryGotKeyboardFocus), true);