243 references to RibbonGallery
System.Windows.Controls.Ribbon (243)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (5)
34public RibbonGalleryAutomationPeer(RibbonGallery owner) 66RibbonToolTip toolTip = ((RibbonGallery)Owner).ToolTip as RibbonToolTip; 85RibbonGallery owner = (RibbonGallery)Owner; 170Collection<RibbonGalleryItem> selectedContainers = ((RibbonGallery)Owner).SelectedContainers;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (6)
58RibbonGallery gallery = this.Gallery; 235RibbonGallery gallery = this.Gallery; 513RibbonGallery gallery = this.Gallery; 626RibbonGallery gallery = this.Gallery; 1006private RibbonGallery Gallery 1010return (RibbonGallery)ItemsControl.GetItemsOwner(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (10)
40RibbonGallery gallery = Gallery; 95RibbonGallery gallery = Gallery; 124RibbonGallery gallery = Gallery; 156RibbonGallery gallery = Gallery; 170RibbonGallery gallery = Gallery; 190RibbonGallery gallery = Gallery; 331RibbonGallery parentGallery = Gallery; 448RibbonGallery gallery = Gallery; 544RibbonGallery parentGallery = Gallery; 612private RibbonGallery Gallery
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (3)
218bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 238if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is RibbonGallery) 256container is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (3)
53bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 73if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is RibbonGallery) 91container is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (3)
51bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 71if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is RibbonGallery) 89container is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (6)
1343RibbonGallery firstGallery = null; 1347firstGallery = ItemContainerGenerator.ContainerFromItem(item) as RibbonGallery; 1361RibbonGallery gallery = element as RibbonGallery; 1593internal RibbonGallery FirstGallery 1686private RibbonGallery _firstGallery;
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (6)
258if (owner is RibbonGallery) 492bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 512if (itemContainer is RibbonMenuItem || itemContainer is RibbonGallery || itemContainer is RibbonSeparator) 529container is RibbonGallery) 543if (element is RibbonGallery) 565if (element is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (2)
78RibbonGallery parentGallery = this.TemplatedParent as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (123)
61Type ownerType = typeof(RibbonGallery); 122_scrollViewer = GetTemplateChild(RibbonGallery.ScrollViewerTemplatePartName) as ScrollViewer; 159DependencyProperty.Register("CurrentFilter", typeof(object), typeof(RibbonGallery), new FrameworkPropertyMetadata(_allFilter, OnCurrentFilterChanged)); 171DependencyProperty.Register("CurrentFilterStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, null, OnCoerceCurrentFilterStyle)); 190RibbonGallery gallery = (RibbonGallery)d; 231DependencyProperty.Register("CurrentFilterTemplate", typeof(DataTemplate), typeof(RibbonGallery), 241RibbonGallery gallery = (RibbonGallery)d; 319RibbonGallery gallery = (RibbonGallery)d; 340ItemsHostSite = (Panel)(ItemsPanel.FindName(RibbonGallery.ItemsHostPanelName, _itemsPresenter)); 365filterItem.Command = RibbonGallery.FilterCommand; 426typeof(RibbonGallery), 451typeof(RibbonGallery), 462RibbonGallery gallery = (RibbonGallery)d; 487typeof(RibbonGallery), 516typeof(RibbonGallery), 533typeof(RibbonGallery), 548typeof(RibbonGallery), 585RibbonGallery me = (RibbonGallery)d; 602TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGallery>(category.ItemsHostSite, false); 617EventManager.RegisterRoutedEvent("SelectionChanged", RoutingStrategy.Bubble, typeof(RoutedPropertyChangedEventHandler<object>), typeof(RibbonGallery)); 669typeof(RibbonGallery), 714RibbonGallery gallery = (RibbonGallery)d; 773typeof(RibbonGallery), 818RibbonGallery gallery = (RibbonGallery)d; 890typeof(RibbonGallery), 907RibbonGallery gallery = (RibbonGallery)d; 908ValueSource valueSource = DependencyPropertyHelper.GetValueSource(gallery, RibbonGallery.SelectedValueProperty); 917DependencyProperty.Register("IsSynchronizedWithCurrentItem", typeof(bool?), typeof(RibbonGallery), 934RibbonGallery gallery = (RibbonGallery)d; 959IsSynchronizedWithCurrentItemInternal = IsInitialized && (RibbonGallery.GetSourceCollectionView(this) != null); 1084SourceCollectionView = RibbonGallery.GetSourceCollectionView(this); 1576typeof(RibbonGallery), 1616RibbonGallery gallery = (RibbonGallery)d; 1669RibbonGallery gallery = (RibbonGallery)d; 1784RibbonGallery rg = sender as RibbonGallery; 1797RibbonGallery rg = (RibbonGallery)sender; 1831DependencyProperty.Register("CanUserFilter", typeof(bool), typeof(RibbonGallery), new FrameworkPropertyMetadata(false)); 1847DependencyProperty.Register("FilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1862DependencyProperty.Register("AllFilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1866RibbonGallery gallery = (RibbonGallery)d; 1869gallery.CoerceValue(RibbonGallery.FilterItemContainerStyleSelectorProperty); 1870gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 1889typeof(RibbonGallery), 1894RibbonGallery gallery = (RibbonGallery)d; 1895gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 1908RibbonGallery gallery = (RibbonGallery)d; 1921private RibbonGallery _gallery; 1923internal RibbonGalleryDefaultFilterItemContainerStyleSelector(RibbonGallery inputGallery) : base() 1962DependencyProperty.Register("FilterMenuButtonStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 1977DependencyProperty.Register("FilterPaneContent", typeof(object), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 1992DependencyProperty.Register("FilterPaneContentTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 2007DependencyProperty.Register("FilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2022DependencyProperty.Register("AllFilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2026RibbonGallery gallery = (RibbonGallery)d; 2029gallery.CoerceValue(RibbonGallery.FilterItemTemplateSelectorProperty); 2030gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2048typeof(RibbonGallery), 2053RibbonGallery gallery = (RibbonGallery)d; 2054gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2066RibbonGallery gallery = (RibbonGallery)d; 2079private RibbonGallery _gallery; 2081internal RibbonGalleryDefaultFilterItemTemplateSelector(RibbonGallery inputGallery) : base() 2268typeof(RibbonGallery), 2273((RibbonGallery)d).RaiseEvent(new RoutedPropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue, RibbonMenuButton.RibbonIsSelectedChangedEvent)); 2352RibbonGallery gallery = (RibbonGallery)d; 2387gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 2389gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2453DependencyProperty.Register("CategoryTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryTemplateChanged))); 2463if (!PropertyHelper.IsDefaultValue(d, RibbonGallery.CategoryTemplateProperty)) 2465return d.GetValue(RibbonGallery.CategoryTemplateProperty); 2488DependencyProperty.Register("CategoryStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryStyleChanged))); 2498if (!PropertyHelper.IsDefaultValue(d, RibbonGallery.CategoryStyleProperty)) 2500return d.GetValue(RibbonGallery.CategoryStyleProperty); 2517DependencyProperty.Register("GalleryItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged))); 2526DependencyProperty.Register("GalleryItemStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged))); 2530RibbonGallery gallery = (RibbonGallery)d; 2646RibbonGallery gallery = (RibbonGallery)sender; 2772RibbonGallery ribbonGallery = (RibbonGallery)sender; 2811typeof(RibbonGallery), 2830typeof(RibbonGallery), 2849typeof(RibbonGallery), 2868typeof(RibbonGallery), 2873RibbonGallery gallery = (RibbonGallery)d; 2933RibbonGallery gallery = (RibbonGallery)d; 2974RibbonControlService.SmallImageSourceProperty.AddOwner(typeof(RibbonGallery)); 2989RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3004RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3019RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3034RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3049RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3064RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3079RibbonControlService.RibbonProperty.AddOwner(typeof(RibbonGallery)); 3140RibbonGallery gallery = (RibbonGallery)sender; 3146RibbonGallery gallery = (RibbonGallery)sender; 3174RibbonControlService.QuickAccessToolBarIdProperty.AddOwner(typeof(RibbonGallery)); 3189RibbonControlService.CanAddToQuickAccessToolBarDirectlyProperty.AddOwner(typeof(RibbonGallery),
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (17)
97RibbonGallery gallery = RibbonGallery; 104if (RibbonGallery.VerifyEqual(item, selectedItem)) 121if (RibbonGallery.VerifyEqual(selectedValue, itemValue)) 165internal RibbonGallery RibbonGallery 228RibbonGallery gallery = galleryCategory.RibbonGallery; 237if (e.Property == ItemTemplateProperty || e.Property == RibbonGallery.GalleryItemTemplateProperty) 241else if (e.Property == ItemContainerStyleProperty || e.Property == RibbonGallery.GalleryItemStyleProperty) 262RibbonGallery.GalleryItemTemplateProperty); 272RibbonGallery.GalleryItemStyleProperty); 306public static readonly DependencyProperty MinColumnCountProperty = RibbonGallery.MinColumnCountProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(1, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged), new CoerceValueCallback(CoerceMinColumnCount))); 317RibbonGallery.MinColumnCountProperty); 338public static readonly DependencyProperty MaxColumnCountProperty = RibbonGallery.MaxColumnCountProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(int.MaxValue, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged), new CoerceValueCallback(CoerceMaxColumnCount))); 349RibbonGallery.MaxColumnCountProperty); 368public static readonly DependencyProperty ColumnsStretchToFillProperty = RibbonGallery.ColumnsStretchToFillProperty.AddOwner(typeof(RibbonGalleryCategory), 393public static readonly DependencyProperty IsSharedColumnSizeScopeProperty = RibbonGallery.IsSharedColumnSizeScopeProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged))); 558if (selectedItem != null && RibbonGallery.VerifyEqual(selectedItem, e.OldItems[i])) 565if (highlightedItem != null && RibbonGallery.VerifyEqual(highlightedItem, e.OldItems[i]))
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (6)
64internal RibbonGallery RibbonGallery 188RibbonGallery gallery = category.RibbonGallery; 242RibbonGallery gallery = category.RibbonGallery; 296RibbonGallery gallery = RibbonGallery; 348RibbonGallery gallery = RibbonGallery; 373RibbonGallery gallery = RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (35)
615RibbonGallery gallery = nextElement as RibbonGallery; 644RibbonGallery gallery = previousElement as RibbonGallery; 659private static bool NavigateUpToGallery(RibbonGallery gallery) 672private static bool NavigateDownToGallery(RibbonGallery gallery) 723return container != null && (container is RibbonGallery || container.Focusable); 744internal static bool NavigatePageAndHighlightRibbonGalleryItem(RibbonGallery gallery, RibbonGalleryItem galleryItem, FocusNavigationDirection direction) 755RibbonGallery gallery, 1798new PropertyAndTransferMode () { Property = RibbonGallery.CanUserFilterProperty, Mode = TransferMode.AlwaysTransfer }, 1799new PropertyAndTransferMode () { Property = RibbonGallery.CategoryStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1800new PropertyAndTransferMode () { Property = RibbonGallery.CategoryTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1801new PropertyAndTransferMode () { Property = RibbonGallery.CommandParameterProperty, Mode = TransferMode.AlwaysTransfer }, 1802new PropertyAndTransferMode () { Property = RibbonGallery.CommandProperty, Mode = TransferMode.AlwaysTransfer }, 1803new PropertyAndTransferMode () { Property = RibbonGallery.CommandTargetProperty, Mode = TransferMode.AlwaysTransfer }, 1804new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1805new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1806new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1807new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1808new PropertyAndTransferMode () { Property = RibbonGallery.FilterMenuButtonStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1809new PropertyAndTransferMode () { Property = RibbonGallery.FilterPaneContentProperty, Mode = TransferMode.AlwaysTransfer }, 1810new PropertyAndTransferMode () { Property = RibbonGallery.FilterPaneContentTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1811new PropertyAndTransferMode () { Property = RibbonGallery.GalleryItemStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1812new PropertyAndTransferMode () { Property = RibbonGallery.GalleryItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1813new PropertyAndTransferMode () { Property = RibbonGallery.IsSharedColumnSizeScopeProperty, Mode = TransferMode.AlwaysTransfer }, 1814new PropertyAndTransferMode () { Property = RibbonGallery.IsSynchronizedWithCurrentItemProperty, Mode = TransferMode.AlwaysTransfer }, 1815new PropertyAndTransferMode () { Property = RibbonGallery.MaxColumnCountProperty, Mode = TransferMode.AlwaysTransfer }, 1816new PropertyAndTransferMode () { Property = RibbonGallery.MinColumnCountProperty, Mode = TransferMode.AlwaysTransfer }, 1817new PropertyAndTransferMode () { Property = RibbonGallery.PreviewCommandParameterProperty, Mode = TransferMode.AlwaysTransfer }, 1818new PropertyAndTransferMode () { Property = RibbonGallery.SelectedItemProperty, Mode = TransferMode.AlwaysTransfer }, 1819new PropertyAndTransferMode () { Property = RibbonGallery.SelectedValuePathProperty, Mode = TransferMode.AlwaysTransfer }, 1820new PropertyAndTransferMode () { Property = RibbonGallery.SelectedValueProperty, Mode = TransferMode.AlwaysTransfer }, 1982if (allowTransformations && clone is RibbonGallery) 2118else if (original is RibbonGallery) 2228else if (original is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (9)
535bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 555if (itemContainer is RibbonMenuItem || itemContainer is RibbonGallery || itemContainer is RibbonSeparator) 573if (element is RibbonGallery) 599if (element is RibbonGallery && _galleryCount > 0) 608container is RibbonGallery) 946RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery; 962RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (9)
497bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 517if (itemContainer is RibbonMenuItem || itemContainer is RibbonGallery || itemContainer is RibbonSeparator) 534container is RibbonGallery) 548if (element is RibbonGallery) 570if (element is RibbonGallery) 1556RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery; 1572RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery;