2 writes to RibbonGallery
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
2147category.RibbonGallery = this; 2246category.RibbonGallery = null;
36 references to RibbonGallery
System.Windows.Controls.Ribbon (36)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (1)
614return category.RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (31)
92RibbonGallery gallery = RibbonGallery; 223RibbonGallery gallery = galleryCategory.RibbonGallery; 256category.RibbonGallery, 266category.RibbonGallery, 311me.RibbonGallery, 343me.RibbonGallery, 452if (RibbonGallery != null && RibbonGallery.IsSynchronizedWithCurrentItemInternal) 495if (RibbonGallery != null && RibbonGallery.IsSynchronizedWithCurrentItemInternal) 499if (RibbonGallery != null && RibbonGallery.SelectedItem == null) 511Debug.Assert(RibbonGallery == null || RibbonGallery.IsSynchronizedWithCurrentItemInternal, "We shouldn't be listening for currency changes if IsSynchronizedWithCurrentItemInternal is false"); 513if (RibbonGallery == null || CollectionView == null || RibbonGallery.IsSelectionChangeActive) 528RibbonGallery.SelectedItem = CollectionView.CurrentItem; 545if (RibbonGallery != null) 547object selectedItem = RibbonGallery.SelectedItem; 548object highlightedItem = RibbonGallery.HighlightedItem; 557RibbonGallery.ForceCoerceSelectedItem(); 564RibbonGallery.ForceCoerceHighlightedItem(); 569RibbonGallery.IsMaxColumnWidthValid = false; 573if (RibbonGallery != null) 575if (RibbonGallery.SelectedItem != null) 578RibbonGallery.ForceCoerceSelectedItem(); 580if (RibbonGallery.HighlightedItem != null) 583RibbonGallery.ForceCoerceHighlightedItem(); 586RibbonGallery.IsMaxColumnWidthValid = false; 591if (RibbonGallery != null) 593RibbonGallery.IsMaxColumnWidthValid = false;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (3)
66return RibbonGalleryCategory != null ? RibbonGalleryCategory.RibbonGallery : null; 186RibbonGallery gallery = category.RibbonGallery; 240RibbonGallery gallery = category.RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
780Debug.Assert(category.RibbonGallery == gallery, "The reference RibbongalleryItem and the RibbonGallery must be related.");