243 references to RibbonGallery
System.Windows.Controls.Ribbon (243)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (5)
31public RibbonGalleryAutomationPeer(RibbonGallery owner) 63RibbonToolTip toolTip = ((RibbonGallery)Owner).ToolTip as RibbonToolTip; 82RibbonGallery owner = (RibbonGallery)Owner; 167Collection<RibbonGalleryItem> selectedContainers = ((RibbonGallery)Owner).SelectedContainers;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (6)
53RibbonGallery gallery = this.Gallery; 230RibbonGallery gallery = this.Gallery; 508RibbonGallery gallery = this.Gallery; 621RibbonGallery gallery = this.Gallery; 1001private RibbonGallery Gallery 1005return (RibbonGallery)ItemsControl.GetItemsOwner(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (10)
35RibbonGallery gallery = Gallery; 90RibbonGallery gallery = Gallery; 119RibbonGallery gallery = Gallery; 151RibbonGallery gallery = Gallery; 165RibbonGallery gallery = Gallery; 185RibbonGallery gallery = Gallery; 326RibbonGallery parentGallery = Gallery; 443RibbonGallery gallery = Gallery; 539RibbonGallery parentGallery = Gallery; 607private RibbonGallery Gallery
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (3)
216bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 236if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is RibbonGallery) 254container is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (3)
50bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 70if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is RibbonGallery) 88container is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (3)
48bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 68if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is RibbonGallery) 86container is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (6)
1341RibbonGallery firstGallery = null; 1345firstGallery = ItemContainerGenerator.ContainerFromItem(item) as RibbonGallery; 1359RibbonGallery gallery = element as RibbonGallery; 1591internal RibbonGallery FirstGallery 1684private RibbonGallery _firstGallery;
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (6)
256if (owner is RibbonGallery) 490bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 510if (itemContainer is RibbonMenuItem || itemContainer is RibbonGallery || itemContainer is RibbonSeparator) 527container is RibbonGallery) 541if (element is RibbonGallery) 563if (element is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (2)
76RibbonGallery parentGallery = this.TemplatedParent as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (123)
59Type ownerType = typeof(RibbonGallery); 120_scrollViewer = GetTemplateChild(RibbonGallery.ScrollViewerTemplatePartName) as ScrollViewer; 157DependencyProperty.Register("CurrentFilter", typeof(object), typeof(RibbonGallery), new FrameworkPropertyMetadata(_allFilter, OnCurrentFilterChanged)); 169DependencyProperty.Register("CurrentFilterStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, null, OnCoerceCurrentFilterStyle)); 188RibbonGallery gallery = (RibbonGallery)d; 229DependencyProperty.Register("CurrentFilterTemplate", typeof(DataTemplate), typeof(RibbonGallery), 239RibbonGallery gallery = (RibbonGallery)d; 317RibbonGallery gallery = (RibbonGallery)d; 338ItemsHostSite = (Panel)(ItemsPanel.FindName(RibbonGallery.ItemsHostPanelName, _itemsPresenter)); 363filterItem.Command = RibbonGallery.FilterCommand; 424typeof(RibbonGallery), 449typeof(RibbonGallery), 460RibbonGallery gallery = (RibbonGallery)d; 485typeof(RibbonGallery), 514typeof(RibbonGallery), 531typeof(RibbonGallery), 546typeof(RibbonGallery), 583RibbonGallery me = (RibbonGallery)d; 600TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGallery>(category.ItemsHostSite, false); 615EventManager.RegisterRoutedEvent("SelectionChanged", RoutingStrategy.Bubble, typeof(RoutedPropertyChangedEventHandler<object>), typeof(RibbonGallery)); 667typeof(RibbonGallery), 712RibbonGallery gallery = (RibbonGallery)d; 771typeof(RibbonGallery), 816RibbonGallery gallery = (RibbonGallery)d; 888typeof(RibbonGallery), 905RibbonGallery gallery = (RibbonGallery)d; 906ValueSource valueSource = DependencyPropertyHelper.GetValueSource(gallery, RibbonGallery.SelectedValueProperty); 915DependencyProperty.Register("IsSynchronizedWithCurrentItem", typeof(bool?), typeof(RibbonGallery), 932RibbonGallery gallery = (RibbonGallery)d; 957IsSynchronizedWithCurrentItemInternal = IsInitialized && (RibbonGallery.GetSourceCollectionView(this) != null); 1082SourceCollectionView = RibbonGallery.GetSourceCollectionView(this); 1574typeof(RibbonGallery), 1614RibbonGallery gallery = (RibbonGallery)d; 1667RibbonGallery gallery = (RibbonGallery)d; 1782RibbonGallery rg = sender as RibbonGallery; 1795RibbonGallery rg = (RibbonGallery)sender; 1829DependencyProperty.Register("CanUserFilter", typeof(bool), typeof(RibbonGallery), new FrameworkPropertyMetadata(false)); 1845DependencyProperty.Register("FilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1860DependencyProperty.Register("AllFilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1864RibbonGallery gallery = (RibbonGallery)d; 1867gallery.CoerceValue(RibbonGallery.FilterItemContainerStyleSelectorProperty); 1868gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 1887typeof(RibbonGallery), 1892RibbonGallery gallery = (RibbonGallery)d; 1893gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 1906RibbonGallery gallery = (RibbonGallery)d; 1919private RibbonGallery _gallery; 1921internal RibbonGalleryDefaultFilterItemContainerStyleSelector(RibbonGallery inputGallery) : base() 1960DependencyProperty.Register("FilterMenuButtonStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 1975DependencyProperty.Register("FilterPaneContent", typeof(object), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 1990DependencyProperty.Register("FilterPaneContentTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 2005DependencyProperty.Register("FilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2020DependencyProperty.Register("AllFilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2024RibbonGallery gallery = (RibbonGallery)d; 2027gallery.CoerceValue(RibbonGallery.FilterItemTemplateSelectorProperty); 2028gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2046typeof(RibbonGallery), 2051RibbonGallery gallery = (RibbonGallery)d; 2052gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2064RibbonGallery gallery = (RibbonGallery)d; 2077private RibbonGallery _gallery; 2079internal RibbonGalleryDefaultFilterItemTemplateSelector(RibbonGallery inputGallery) : base() 2266typeof(RibbonGallery), 2271((RibbonGallery)d).RaiseEvent(new RoutedPropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue, RibbonMenuButton.RibbonIsSelectedChangedEvent)); 2350RibbonGallery gallery = (RibbonGallery)d; 2385gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 2387gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2451DependencyProperty.Register("CategoryTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryTemplateChanged))); 2461if (!PropertyHelper.IsDefaultValue(d, RibbonGallery.CategoryTemplateProperty)) 2463return d.GetValue(RibbonGallery.CategoryTemplateProperty); 2486DependencyProperty.Register("CategoryStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryStyleChanged))); 2496if (!PropertyHelper.IsDefaultValue(d, RibbonGallery.CategoryStyleProperty)) 2498return d.GetValue(RibbonGallery.CategoryStyleProperty); 2515DependencyProperty.Register("GalleryItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged))); 2524DependencyProperty.Register("GalleryItemStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged))); 2528RibbonGallery 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)
92RibbonGallery gallery = RibbonGallery; 99if (RibbonGallery.VerifyEqual(item, selectedItem)) 116if (RibbonGallery.VerifyEqual(selectedValue, itemValue)) 160internal RibbonGallery RibbonGallery 223RibbonGallery gallery = galleryCategory.RibbonGallery; 232if (e.Property == ItemTemplateProperty || e.Property == RibbonGallery.GalleryItemTemplateProperty) 236else if (e.Property == ItemContainerStyleProperty || e.Property == RibbonGallery.GalleryItemStyleProperty) 257RibbonGallery.GalleryItemTemplateProperty); 267RibbonGallery.GalleryItemStyleProperty); 301public static readonly DependencyProperty MinColumnCountProperty = RibbonGallery.MinColumnCountProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(1, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged), new CoerceValueCallback(CoerceMinColumnCount))); 312RibbonGallery.MinColumnCountProperty); 333public static readonly DependencyProperty MaxColumnCountProperty = RibbonGallery.MaxColumnCountProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(int.MaxValue, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged), new CoerceValueCallback(CoerceMaxColumnCount))); 344RibbonGallery.MaxColumnCountProperty); 363public static readonly DependencyProperty ColumnsStretchToFillProperty = RibbonGallery.ColumnsStretchToFillProperty.AddOwner(typeof(RibbonGalleryCategory), 388public static readonly DependencyProperty IsSharedColumnSizeScopeProperty = RibbonGallery.IsSharedColumnSizeScopeProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged))); 553if (selectedItem != null && RibbonGallery.VerifyEqual(selectedItem, e.OldItems[i])) 560if (highlightedItem != null && RibbonGallery.VerifyEqual(highlightedItem, e.OldItems[i]))
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (6)
62internal RibbonGallery RibbonGallery 186RibbonGallery gallery = category.RibbonGallery; 240RibbonGallery gallery = category.RibbonGallery; 294RibbonGallery gallery = RibbonGallery; 346RibbonGallery gallery = RibbonGallery; 371RibbonGallery gallery = RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (35)
610RibbonGallery gallery = nextElement as RibbonGallery; 639RibbonGallery gallery = previousElement as RibbonGallery; 654private static bool NavigateUpToGallery(RibbonGallery gallery) 667private static bool NavigateDownToGallery(RibbonGallery gallery) 718return container != null && (container is RibbonGallery || container.Focusable); 739internal static bool NavigatePageAndHighlightRibbonGalleryItem(RibbonGallery gallery, RibbonGalleryItem galleryItem, FocusNavigationDirection direction) 750RibbonGallery gallery, 1793new PropertyAndTransferMode () { Property = RibbonGallery.CanUserFilterProperty, Mode = TransferMode.AlwaysTransfer }, 1794new PropertyAndTransferMode () { Property = RibbonGallery.CategoryStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1795new PropertyAndTransferMode () { Property = RibbonGallery.CategoryTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1796new PropertyAndTransferMode () { Property = RibbonGallery.CommandParameterProperty, Mode = TransferMode.AlwaysTransfer }, 1797new PropertyAndTransferMode () { Property = RibbonGallery.CommandProperty, Mode = TransferMode.AlwaysTransfer }, 1798new PropertyAndTransferMode () { Property = RibbonGallery.CommandTargetProperty, Mode = TransferMode.AlwaysTransfer }, 1799new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1800new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1801new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1802new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1803new PropertyAndTransferMode () { Property = RibbonGallery.FilterMenuButtonStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1804new PropertyAndTransferMode () { Property = RibbonGallery.FilterPaneContentProperty, Mode = TransferMode.AlwaysTransfer }, 1805new PropertyAndTransferMode () { Property = RibbonGallery.FilterPaneContentTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1806new PropertyAndTransferMode () { Property = RibbonGallery.GalleryItemStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1807new PropertyAndTransferMode () { Property = RibbonGallery.GalleryItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1808new PropertyAndTransferMode () { Property = RibbonGallery.IsSharedColumnSizeScopeProperty, Mode = TransferMode.AlwaysTransfer }, 1809new PropertyAndTransferMode () { Property = RibbonGallery.IsSynchronizedWithCurrentItemProperty, Mode = TransferMode.AlwaysTransfer }, 1810new PropertyAndTransferMode () { Property = RibbonGallery.MaxColumnCountProperty, Mode = TransferMode.AlwaysTransfer }, 1811new PropertyAndTransferMode () { Property = RibbonGallery.MinColumnCountProperty, Mode = TransferMode.AlwaysTransfer }, 1812new PropertyAndTransferMode () { Property = RibbonGallery.PreviewCommandParameterProperty, Mode = TransferMode.AlwaysTransfer }, 1813new PropertyAndTransferMode () { Property = RibbonGallery.SelectedItemProperty, Mode = TransferMode.AlwaysTransfer }, 1814new PropertyAndTransferMode () { Property = RibbonGallery.SelectedValuePathProperty, Mode = TransferMode.AlwaysTransfer }, 1815new PropertyAndTransferMode () { Property = RibbonGallery.SelectedValueProperty, Mode = TransferMode.AlwaysTransfer }, 1977if (allowTransformations && clone is RibbonGallery) 2113else if (original is RibbonGallery) 2223else if (original is RibbonGallery)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (9)
532bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 552if (itemContainer is RibbonMenuItem || itemContainer is RibbonGallery || itemContainer is RibbonSeparator) 570if (element is RibbonGallery) 596if (element is RibbonGallery && _galleryCount > 0) 605container is RibbonGallery) 943RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery; 959RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (9)
494bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 514if (itemContainer is RibbonMenuItem || itemContainer is RibbonGallery || itemContainer is RibbonSeparator) 531container is RibbonGallery) 545if (element is RibbonGallery) 567if (element is RibbonGallery) 1553RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery; 1569RibbonGallery selectedGallery = _ribbonCurrentSelection as RibbonGallery;