243 references to RibbonGallery
System.Windows.Controls.Ribbon (243)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (5)
30public RibbonGalleryAutomationPeer(RibbonGallery owner) 62RibbonToolTip toolTip = ((RibbonGallery)Owner).ToolTip as RibbonToolTip; 81RibbonGallery owner = (RibbonGallery)Owner; 166Collection<RibbonGalleryItem> selectedContainers = ((RibbonGallery)Owner).SelectedContainers;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (6)
52RibbonGallery gallery = this.Gallery; 229RibbonGallery gallery = this.Gallery; 507RibbonGallery gallery = this.Gallery; 620RibbonGallery gallery = this.Gallery; 993private RibbonGallery Gallery 997return (RibbonGallery)ItemsControl.GetItemsOwner(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (10)
34RibbonGallery gallery = Gallery; 89RibbonGallery gallery = Gallery; 118RibbonGallery gallery = Gallery; 150RibbonGallery gallery = Gallery; 164RibbonGallery gallery = Gallery; 184RibbonGallery gallery = Gallery; 325RibbonGallery parentGallery = Gallery; 442RibbonGallery gallery = Gallery; 538RibbonGallery parentGallery = Gallery; 606private RibbonGallery Gallery
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (3)
215bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 235if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is RibbonGallery) 253container is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (3)
49bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 69if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is RibbonGallery) 87container is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (3)
47bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 67if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is RibbonGallery) 85container is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (6)
1340RibbonGallery firstGallery = null; 1344firstGallery = ItemContainerGenerator.ContainerFromItem(item) as RibbonGallery; 1358RibbonGallery gallery = element as RibbonGallery; 1590internal RibbonGallery FirstGallery 1683private RibbonGallery _firstGallery;
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (6)
255if (owner is RibbonGallery) 503bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 523if (itemContainer is RibbonMenuItem || itemContainer is RibbonGallery || itemContainer is RibbonSeparator) 540container is RibbonGallery) 554if (element is RibbonGallery) 576if (element is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (2)
75RibbonGallery parentGallery = this.TemplatedParent as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (123)
58Type ownerType = typeof(RibbonGallery); 119_scrollViewer = GetTemplateChild(RibbonGallery.ScrollViewerTemplatePartName) as ScrollViewer; 156DependencyProperty.Register("CurrentFilter", typeof(object), typeof(RibbonGallery), new FrameworkPropertyMetadata(_allFilter, OnCurrentFilterChanged)); 168DependencyProperty.Register("CurrentFilterStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, null, OnCoerceCurrentFilterStyle)); 187RibbonGallery gallery = (RibbonGallery)d; 228DependencyProperty.Register("CurrentFilterTemplate", typeof(DataTemplate), typeof(RibbonGallery), 238RibbonGallery gallery = (RibbonGallery)d; 316RibbonGallery gallery = (RibbonGallery)d; 337ItemsHostSite = (Panel)(ItemsPanel.FindName(RibbonGallery.ItemsHostPanelName, _itemsPresenter)); 364filterItem.Command = RibbonGallery.FilterCommand; 425typeof(RibbonGallery), 450typeof(RibbonGallery), 461RibbonGallery gallery = (RibbonGallery)d; 486typeof(RibbonGallery), 515typeof(RibbonGallery), 532typeof(RibbonGallery), 547typeof(RibbonGallery), 584RibbonGallery me = (RibbonGallery)d; 601TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGallery>(category.ItemsHostSite, false); 616EventManager.RegisterRoutedEvent("SelectionChanged", RoutingStrategy.Bubble, typeof(RoutedPropertyChangedEventHandler<object>), typeof(RibbonGallery)); 668typeof(RibbonGallery), 713RibbonGallery gallery = (RibbonGallery)d; 772typeof(RibbonGallery), 817RibbonGallery gallery = (RibbonGallery)d; 889typeof(RibbonGallery), 906RibbonGallery gallery = (RibbonGallery)d; 907ValueSource valueSource = DependencyPropertyHelper.GetValueSource(gallery, RibbonGallery.SelectedValueProperty); 916DependencyProperty.Register("IsSynchronizedWithCurrentItem", typeof(bool?), typeof(RibbonGallery), 933RibbonGallery gallery = (RibbonGallery)d; 958IsSynchronizedWithCurrentItemInternal = IsInitialized && (RibbonGallery.GetSourceCollectionView(this) != null); 1083SourceCollectionView = RibbonGallery.GetSourceCollectionView(this); 1577typeof(RibbonGallery), 1617RibbonGallery gallery = (RibbonGallery)d; 1670RibbonGallery gallery = (RibbonGallery)d; 1785RibbonGallery rg = sender as RibbonGallery; 1798RibbonGallery rg = (RibbonGallery)sender; 1832DependencyProperty.Register("CanUserFilter", typeof(bool), typeof(RibbonGallery), new FrameworkPropertyMetadata(false)); 1848DependencyProperty.Register("FilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1863DependencyProperty.Register("AllFilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1867RibbonGallery gallery = (RibbonGallery)d; 1870gallery.CoerceValue(RibbonGallery.FilterItemContainerStyleSelectorProperty); 1871gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 1890typeof(RibbonGallery), 1895RibbonGallery gallery = (RibbonGallery)d; 1896gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 1909RibbonGallery gallery = (RibbonGallery)d; 1922private RibbonGallery _gallery; 1924internal RibbonGalleryDefaultFilterItemContainerStyleSelector(RibbonGallery inputGallery) : base() 1963DependencyProperty.Register("FilterMenuButtonStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 1978DependencyProperty.Register("FilterPaneContent", typeof(object), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 1993DependencyProperty.Register("FilterPaneContentTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 2008DependencyProperty.Register("FilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2023DependencyProperty.Register("AllFilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2027RibbonGallery gallery = (RibbonGallery)d; 2030gallery.CoerceValue(RibbonGallery.FilterItemTemplateSelectorProperty); 2031gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2049typeof(RibbonGallery), 2054RibbonGallery gallery = (RibbonGallery)d; 2055gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2067RibbonGallery gallery = (RibbonGallery)d; 2080private RibbonGallery _gallery; 2082internal RibbonGalleryDefaultFilterItemTemplateSelector(RibbonGallery inputGallery) : base() 2269typeof(RibbonGallery), 2274((RibbonGallery)d).RaiseEvent(new RoutedPropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue, RibbonMenuButton.RibbonIsSelectedChangedEvent)); 2353RibbonGallery gallery = (RibbonGallery)d; 2388gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 2390gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2454DependencyProperty.Register("CategoryTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryTemplateChanged))); 2464if (!PropertyHelper.IsDefaultValue(d, RibbonGallery.CategoryTemplateProperty)) 2466return d.GetValue(RibbonGallery.CategoryTemplateProperty); 2489DependencyProperty.Register("CategoryStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryStyleChanged))); 2499if (!PropertyHelper.IsDefaultValue(d, RibbonGallery.CategoryStyleProperty)) 2501return d.GetValue(RibbonGallery.CategoryStyleProperty); 2518DependencyProperty.Register("GalleryItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged))); 2527DependencyProperty.Register("GalleryItemStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged))); 2531RibbonGallery gallery = (RibbonGallery)d; 2644RibbonGallery gallery = (RibbonGallery)sender; 2770RibbonGallery ribbonGallery = (RibbonGallery)sender; 2809typeof(RibbonGallery), 2828typeof(RibbonGallery), 2847typeof(RibbonGallery), 2866typeof(RibbonGallery), 2871RibbonGallery gallery = (RibbonGallery)d; 2931RibbonGallery gallery = (RibbonGallery)d; 2972RibbonControlService.SmallImageSourceProperty.AddOwner(typeof(RibbonGallery)); 2987RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3002RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3017RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3032RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3047RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3062RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3077RibbonControlService.RibbonProperty.AddOwner(typeof(RibbonGallery)); 3138RibbonGallery gallery = (RibbonGallery)sender; 3144RibbonGallery gallery = (RibbonGallery)sender; 3172RibbonControlService.QuickAccessToolBarIdProperty.AddOwner(typeof(RibbonGallery)); 3187RibbonControlService.CanAddToQuickAccessToolBarDirectlyProperty.AddOwner(typeof(RibbonGallery),
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (17)
91RibbonGallery gallery = RibbonGallery; 98if (RibbonGallery.VerifyEqual(item, selectedItem)) 115if (RibbonGallery.VerifyEqual(selectedValue, itemValue)) 159internal RibbonGallery RibbonGallery 222RibbonGallery gallery = galleryCategory.RibbonGallery; 228if (e.Property == ItemTemplateProperty || e.Property == RibbonGallery.GalleryItemTemplateProperty) 232else if (e.Property == ItemContainerStyleProperty || e.Property == RibbonGallery.GalleryItemStyleProperty) 253RibbonGallery.GalleryItemTemplateProperty); 263RibbonGallery.GalleryItemStyleProperty); 297public static readonly DependencyProperty MinColumnCountProperty = RibbonGallery.MinColumnCountProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(1, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged), new CoerceValueCallback(CoerceMinColumnCount))); 308RibbonGallery.MinColumnCountProperty); 329public static readonly DependencyProperty MaxColumnCountProperty = RibbonGallery.MaxColumnCountProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(int.MaxValue, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged), new CoerceValueCallback(CoerceMaxColumnCount))); 340RibbonGallery.MaxColumnCountProperty); 359public static readonly DependencyProperty ColumnsStretchToFillProperty = RibbonGallery.ColumnsStretchToFillProperty.AddOwner(typeof(RibbonGalleryCategory), 384public static readonly DependencyProperty IsSharedColumnSizeScopeProperty = RibbonGallery.IsSharedColumnSizeScopeProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged))); 549if (selectedItem != null && RibbonGallery.VerifyEqual(selectedItem, e.OldItems[i])) 556if (highlightedItem != null && RibbonGallery.VerifyEqual(highlightedItem, e.OldItems[i]))
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (6)
61internal RibbonGallery RibbonGallery 185RibbonGallery gallery = category.RibbonGallery; 239RibbonGallery gallery = category.RibbonGallery; 293RibbonGallery gallery = RibbonGallery; 345RibbonGallery gallery = RibbonGallery; 370RibbonGallery gallery = RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (35)
613RibbonGallery gallery = nextElement as RibbonGallery; 642RibbonGallery gallery = previousElement as RibbonGallery; 657private static bool NavigateUpToGallery(RibbonGallery gallery) 670private static bool NavigateDownToGallery(RibbonGallery gallery) 721return container != null && (container is RibbonGallery || container.Focusable); 742internal static bool NavigatePageAndHighlightRibbonGalleryItem(RibbonGallery gallery, RibbonGalleryItem galleryItem, FocusNavigationDirection direction) 753RibbonGallery gallery, 1772new PropertyAndTransferMode () { Property = RibbonGallery.CanUserFilterProperty, Mode = TransferMode.AlwaysTransfer }, 1773new PropertyAndTransferMode () { Property = RibbonGallery.CategoryStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1774new PropertyAndTransferMode () { Property = RibbonGallery.CategoryTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1775new PropertyAndTransferMode () { Property = RibbonGallery.CommandParameterProperty, Mode = TransferMode.AlwaysTransfer }, 1776new PropertyAndTransferMode () { Property = RibbonGallery.CommandProperty, Mode = TransferMode.AlwaysTransfer }, 1777new PropertyAndTransferMode () { Property = RibbonGallery.CommandTargetProperty, Mode = TransferMode.AlwaysTransfer }, 1778new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1779new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1780new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1781new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1782new PropertyAndTransferMode () { Property = RibbonGallery.FilterMenuButtonStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1783new PropertyAndTransferMode () { Property = RibbonGallery.FilterPaneContentProperty, Mode = TransferMode.AlwaysTransfer }, 1784new PropertyAndTransferMode () { Property = RibbonGallery.FilterPaneContentTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1785new PropertyAndTransferMode () { Property = RibbonGallery.GalleryItemStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1786new PropertyAndTransferMode () { Property = RibbonGallery.GalleryItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1787new PropertyAndTransferMode () { Property = RibbonGallery.IsSharedColumnSizeScopeProperty, Mode = TransferMode.AlwaysTransfer }, 1788new PropertyAndTransferMode () { Property = RibbonGallery.IsSynchronizedWithCurrentItemProperty, Mode = TransferMode.AlwaysTransfer }, 1789new PropertyAndTransferMode () { Property = RibbonGallery.MaxColumnCountProperty, Mode = TransferMode.AlwaysTransfer }, 1790new PropertyAndTransferMode () { Property = RibbonGallery.MinColumnCountProperty, Mode = TransferMode.AlwaysTransfer }, 1791new PropertyAndTransferMode () { Property = RibbonGallery.PreviewCommandParameterProperty, Mode = TransferMode.AlwaysTransfer }, 1792new PropertyAndTransferMode () { Property = RibbonGallery.SelectedItemProperty, Mode = TransferMode.AlwaysTransfer }, 1793new PropertyAndTransferMode () { Property = RibbonGallery.SelectedValuePathProperty, Mode = TransferMode.AlwaysTransfer }, 1794new PropertyAndTransferMode () { Property = RibbonGallery.SelectedValueProperty, Mode = TransferMode.AlwaysTransfer }, 1956if (allowTransformations && clone is RibbonGallery) 2092else if (original is RibbonGallery) 2202else if (original is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (9)
531bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 551if (itemContainer is RibbonMenuItem || itemContainer is RibbonGallery || itemContainer is RibbonSeparator) 569if (element is RibbonGallery) 595if (element is RibbonGallery && _galleryCount > 0) 604container is RibbonGallery) 942RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery; 958RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (9)
493bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 513if (itemContainer is RibbonMenuItem || itemContainer is RibbonGallery || itemContainer is RibbonSeparator) 530container is RibbonGallery) 544if (element is RibbonGallery) 566if (element is RibbonGallery) 1540RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery; 1556RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery;