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; 997private RibbonGallery Gallery 1001return (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)
1345RibbonGallery firstGallery = null; 1349firstGallery = ItemContainerGenerator.ContainerFromItem(item) as RibbonGallery; 1363RibbonGallery gallery = element as RibbonGallery; 1595internal RibbonGallery FirstGallery 1688private RibbonGallery _firstGallery;
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (6)
256if (owner is RibbonGallery) 504bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is RibbonGallery); 524if (itemContainer is RibbonMenuItem || itemContainer is RibbonGallery || itemContainer is RibbonSeparator) 541container is RibbonGallery) 555if (element is RibbonGallery) 577if (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)); 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); 1578typeof(RibbonGallery), 1618RibbonGallery gallery = (RibbonGallery)d; 1671RibbonGallery gallery = (RibbonGallery)d; 1786RibbonGallery rg = sender as RibbonGallery; 1799RibbonGallery rg = (RibbonGallery)sender; 1833DependencyProperty.Register("CanUserFilter", typeof(bool), typeof(RibbonGallery), new FrameworkPropertyMetadata(false)); 1849DependencyProperty.Register("FilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1864DependencyProperty.Register("AllFilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1868RibbonGallery gallery = (RibbonGallery)d; 1871gallery.CoerceValue(RibbonGallery.FilterItemContainerStyleSelectorProperty); 1872gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 1891typeof(RibbonGallery), 1896RibbonGallery gallery = (RibbonGallery)d; 1897gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 1910RibbonGallery gallery = (RibbonGallery)d; 1923private RibbonGallery _gallery; 1925internal RibbonGalleryDefaultFilterItemContainerStyleSelector(RibbonGallery inputGallery) : base() 1964DependencyProperty.Register("FilterMenuButtonStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 1979DependencyProperty.Register("FilterPaneContent", typeof(object), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 1994DependencyProperty.Register("FilterPaneContentTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 2009DependencyProperty.Register("FilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2024DependencyProperty.Register("AllFilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2028RibbonGallery gallery = (RibbonGallery)d; 2031gallery.CoerceValue(RibbonGallery.FilterItemTemplateSelectorProperty); 2032gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2050typeof(RibbonGallery), 2055RibbonGallery gallery = (RibbonGallery)d; 2056gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2068RibbonGallery gallery = (RibbonGallery)d; 2081private RibbonGallery _gallery; 2083internal RibbonGalleryDefaultFilterItemTemplateSelector(RibbonGallery inputGallery) : base() 2270typeof(RibbonGallery), 2275((RibbonGallery)d).RaiseEvent(new RoutedPropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue, RibbonMenuButton.RibbonIsSelectedChangedEvent)); 2354RibbonGallery gallery = (RibbonGallery)d; 2389gallery.CoerceValue(RibbonGallery.CurrentFilterStyleProperty); 2391gallery.CoerceValue(RibbonGallery.CurrentFilterTemplateProperty); 2455DependencyProperty.Register("CategoryTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryTemplateChanged))); 2465if (!PropertyHelper.IsDefaultValue(d, RibbonGallery.CategoryTemplateProperty)) 2467return d.GetValue(RibbonGallery.CategoryTemplateProperty); 2490DependencyProperty.Register("CategoryStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryStyleChanged))); 2500if (!PropertyHelper.IsDefaultValue(d, RibbonGallery.CategoryStyleProperty)) 2502return d.GetValue(RibbonGallery.CategoryStyleProperty); 2519DependencyProperty.Register("GalleryItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged))); 2528DependencyProperty.Register("GalleryItemStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged))); 2532RibbonGallery gallery = (RibbonGallery)d; 2648RibbonGallery gallery = (RibbonGallery)sender; 2774RibbonGallery ribbonGallery = (RibbonGallery)sender; 2813typeof(RibbonGallery), 2832typeof(RibbonGallery), 2851typeof(RibbonGallery), 2870typeof(RibbonGallery), 2875RibbonGallery gallery = (RibbonGallery)d; 2935RibbonGallery gallery = (RibbonGallery)d; 2976RibbonControlService.SmallImageSourceProperty.AddOwner(typeof(RibbonGallery)); 2991RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3006RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3021RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3036RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3051RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3066RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 3081RibbonControlService.RibbonProperty.AddOwner(typeof(RibbonGallery)); 3142RibbonGallery gallery = (RibbonGallery)sender; 3148RibbonGallery gallery = (RibbonGallery)sender; 3176RibbonControlService.QuickAccessToolBarIdProperty.AddOwner(typeof(RibbonGallery)); 3191RibbonControlService.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)
614RibbonGallery gallery = nextElement as RibbonGallery; 643RibbonGallery gallery = previousElement as RibbonGallery; 658private static bool NavigateUpToGallery(RibbonGallery gallery) 671private static bool NavigateDownToGallery(RibbonGallery gallery) 722return container != null && (container is RibbonGallery || container.Focusable); 743internal static bool NavigatePageAndHighlightRibbonGalleryItem(RibbonGallery gallery, RibbonGalleryItem galleryItem, FocusNavigationDirection direction) 754RibbonGallery gallery, 1797new PropertyAndTransferMode () { Property = RibbonGallery.CanUserFilterProperty, Mode = TransferMode.AlwaysTransfer }, 1798new PropertyAndTransferMode () { Property = RibbonGallery.CategoryStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1799new PropertyAndTransferMode () { Property = RibbonGallery.CategoryTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1800new PropertyAndTransferMode () { Property = RibbonGallery.CommandParameterProperty, Mode = TransferMode.AlwaysTransfer }, 1801new PropertyAndTransferMode () { Property = RibbonGallery.CommandProperty, Mode = TransferMode.AlwaysTransfer }, 1802new PropertyAndTransferMode () { Property = RibbonGallery.CommandTargetProperty, Mode = TransferMode.AlwaysTransfer }, 1803new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1804new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1805new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1806new PropertyAndTransferMode () { Property = RibbonGallery.FilterItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1807new PropertyAndTransferMode () { Property = RibbonGallery.FilterMenuButtonStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1808new PropertyAndTransferMode () { Property = RibbonGallery.FilterPaneContentProperty, Mode = TransferMode.AlwaysTransfer }, 1809new PropertyAndTransferMode () { Property = RibbonGallery.FilterPaneContentTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1810new PropertyAndTransferMode () { Property = RibbonGallery.GalleryItemStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1811new PropertyAndTransferMode () { Property = RibbonGallery.GalleryItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1812new PropertyAndTransferMode () { Property = RibbonGallery.IsSharedColumnSizeScopeProperty, Mode = TransferMode.AlwaysTransfer }, 1813new PropertyAndTransferMode () { Property = RibbonGallery.IsSynchronizedWithCurrentItemProperty, Mode = TransferMode.AlwaysTransfer }, 1814new PropertyAndTransferMode () { Property = RibbonGallery.MaxColumnCountProperty, Mode = TransferMode.AlwaysTransfer }, 1815new PropertyAndTransferMode () { Property = RibbonGallery.MinColumnCountProperty, Mode = TransferMode.AlwaysTransfer }, 1816new PropertyAndTransferMode () { Property = RibbonGallery.PreviewCommandParameterProperty, Mode = TransferMode.AlwaysTransfer }, 1817new PropertyAndTransferMode () { Property = RibbonGallery.SelectedItemProperty, Mode = TransferMode.AlwaysTransfer }, 1818new PropertyAndTransferMode () { Property = RibbonGallery.SelectedValuePathProperty, Mode = TransferMode.AlwaysTransfer }, 1819new PropertyAndTransferMode () { Property = RibbonGallery.SelectedValueProperty, Mode = TransferMode.AlwaysTransfer }, 1981if (allowTransformations && clone is RibbonGallery) 2117else if (original is RibbonGallery) 2227else 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;