2 writes to RibbonGallery
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
2145
category.
RibbonGallery
= this;
2244
category.
RibbonGallery
= null;
36 references to RibbonGallery
System.Windows.Controls.Ribbon (36)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (1)
619
return category.
RibbonGallery
;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (31)
97
RibbonGallery gallery =
RibbonGallery
;
228
RibbonGallery gallery = galleryCategory.
RibbonGallery
;
261
category.
RibbonGallery
,
271
category.
RibbonGallery
,
316
me.
RibbonGallery
,
348
me.
RibbonGallery
,
457
if (
RibbonGallery
!= null &&
RibbonGallery
.IsSynchronizedWithCurrentItemInternal)
500
if (
RibbonGallery
!= null &&
RibbonGallery
.IsSynchronizedWithCurrentItemInternal)
504
if (
RibbonGallery
!= null &&
RibbonGallery
.SelectedItem == null)
516
Debug.Assert(
RibbonGallery
== null ||
RibbonGallery
.IsSynchronizedWithCurrentItemInternal, "We shouldn't be listening for currency changes if IsSynchronizedWithCurrentItemInternal is false");
518
if (
RibbonGallery
== null || CollectionView == null ||
RibbonGallery
.IsSelectionChangeActive)
533
RibbonGallery
.SelectedItem = CollectionView.CurrentItem;
550
if (
RibbonGallery
!= null)
552
object selectedItem =
RibbonGallery
.SelectedItem;
553
object highlightedItem =
RibbonGallery
.HighlightedItem;
562
RibbonGallery
.ForceCoerceSelectedItem();
569
RibbonGallery
.ForceCoerceHighlightedItem();
574
RibbonGallery
.IsMaxColumnWidthValid = false;
578
if (
RibbonGallery
!= null)
580
if (
RibbonGallery
.SelectedItem != null)
583
RibbonGallery
.ForceCoerceSelectedItem();
585
if (
RibbonGallery
.HighlightedItem != null)
588
RibbonGallery
.ForceCoerceHighlightedItem();
591
RibbonGallery
.IsMaxColumnWidthValid = false;
596
if (
RibbonGallery
!= null)
598
RibbonGallery
.IsMaxColumnWidthValid = false;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (3)
68
return RibbonGalleryCategory != null ? RibbonGalleryCategory.
RibbonGallery
: null;
188
RibbonGallery gallery = category.
RibbonGallery
;
242
RibbonGallery gallery = category.
RibbonGallery
;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
781
Debug.Assert(category.
RibbonGallery
== gallery, "The reference RibbongalleryItem and the RibbonGallery must be related.");