243 references to RibbonGallery
System.Windows.Controls.Ribbon (243)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (5)
31
public RibbonGalleryAutomationPeer(
RibbonGallery
owner)
63
RibbonToolTip toolTip = ((
RibbonGallery
)Owner).ToolTip as RibbonToolTip;
82
RibbonGallery
owner = (
RibbonGallery
)Owner;
167
Collection<RibbonGalleryItem> selectedContainers = ((
RibbonGallery
)Owner).SelectedContainers;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (6)
53
RibbonGallery
gallery = this.Gallery;
230
RibbonGallery
gallery = this.Gallery;
508
RibbonGallery
gallery = this.Gallery;
621
RibbonGallery
gallery = this.Gallery;
997
private
RibbonGallery
Gallery
1001
return (
RibbonGallery
)ItemsControl.GetItemsOwner(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (10)
35
RibbonGallery
gallery = Gallery;
90
RibbonGallery
gallery = Gallery;
119
RibbonGallery
gallery = Gallery;
151
RibbonGallery
gallery = Gallery;
165
RibbonGallery
gallery = Gallery;
185
RibbonGallery
gallery = Gallery;
326
RibbonGallery
parentGallery = Gallery;
443
RibbonGallery
gallery = Gallery;
539
RibbonGallery
parentGallery = Gallery;
607
private
RibbonGallery
Gallery
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (3)
216
bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is
RibbonGallery
);
236
if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is
RibbonGallery
)
254
container is
RibbonGallery
)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (3)
50
bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is
RibbonGallery
);
70
if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is
RibbonGallery
)
88
container is
RibbonGallery
)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (3)
48
bool ret = (item is RibbonApplicationMenuItem) || (item is RibbonApplicationSplitMenuItem) || (item is RibbonSeparator) || (item is
RibbonGallery
);
68
if (itemContainer is RibbonApplicationMenuItem || itemContainer is RibbonApplicationSplitMenuItem || itemContainer is RibbonSeparator || itemContainer is
RibbonGallery
)
86
container is
RibbonGallery
)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (6)
1345
RibbonGallery
firstGallery = null;
1349
firstGallery = ItemContainerGenerator.ContainerFromItem(item) as
RibbonGallery
;
1363
RibbonGallery
gallery = element as
RibbonGallery
;
1595
internal
RibbonGallery
FirstGallery
1688
private
RibbonGallery
_firstGallery;
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (6)
256
if (owner is
RibbonGallery
)
504
bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is
RibbonGallery
);
524
if (itemContainer is RibbonMenuItem || itemContainer is
RibbonGallery
|| itemContainer is RibbonSeparator)
541
container is
RibbonGallery
)
555
if (element is
RibbonGallery
)
577
if (element is
RibbonGallery
)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (2)
76
RibbonGallery
parentGallery = this.TemplatedParent as
RibbonGallery
;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (123)
59
Type ownerType = typeof(
RibbonGallery
);
120
_scrollViewer = GetTemplateChild(
RibbonGallery
.ScrollViewerTemplatePartName) as ScrollViewer;
157
DependencyProperty.Register("CurrentFilter", typeof(object), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(_allFilter, OnCurrentFilterChanged));
169
DependencyProperty.Register("CurrentFilterStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null, null, OnCoerceCurrentFilterStyle));
188
RibbonGallery
gallery = (
RibbonGallery
)d;
229
DependencyProperty.Register("CurrentFilterTemplate", typeof(DataTemplate), typeof(
RibbonGallery
),
239
RibbonGallery
gallery = (
RibbonGallery
)d;
317
RibbonGallery
gallery = (
RibbonGallery
)d;
338
ItemsHostSite = (Panel)(ItemsPanel.FindName(
RibbonGallery
.ItemsHostPanelName, _itemsPresenter));
365
filterItem.Command =
RibbonGallery
.FilterCommand;
426
typeof(
RibbonGallery
),
451
typeof(
RibbonGallery
),
462
RibbonGallery
gallery = (
RibbonGallery
)d;
487
typeof(
RibbonGallery
),
516
typeof(
RibbonGallery
),
533
typeof(
RibbonGallery
),
548
typeof(
RibbonGallery
),
585
RibbonGallery
me = (
RibbonGallery
)d;
602
TreeHelper.InvalidateMeasureForVisualAncestorPath<
RibbonGallery
>(category.ItemsHostSite, false);
617
EventManager.RegisterRoutedEvent("SelectionChanged", RoutingStrategy.Bubble, typeof(RoutedPropertyChangedEventHandler<object>), typeof(
RibbonGallery
));
669
typeof(
RibbonGallery
),
714
RibbonGallery
gallery = (
RibbonGallery
)d;
773
typeof(
RibbonGallery
),
818
RibbonGallery
gallery = (
RibbonGallery
)d;
890
typeof(
RibbonGallery
),
907
RibbonGallery
gallery = (
RibbonGallery
)d;
908
ValueSource valueSource = DependencyPropertyHelper.GetValueSource(gallery,
RibbonGallery
.SelectedValueProperty);
917
DependencyProperty.Register("IsSynchronizedWithCurrentItem", typeof(bool?), typeof(
RibbonGallery
),
934
RibbonGallery
gallery = (
RibbonGallery
)d;
959
IsSynchronizedWithCurrentItemInternal = IsInitialized && (
RibbonGallery
.GetSourceCollectionView(this) != null);
1084
SourceCollectionView =
RibbonGallery
.GetSourceCollectionView(this);
1578
typeof(
RibbonGallery
),
1618
RibbonGallery
gallery = (
RibbonGallery
)d;
1671
RibbonGallery
gallery = (
RibbonGallery
)d;
1786
RibbonGallery
rg = sender as
RibbonGallery
;
1799
RibbonGallery
rg = (
RibbonGallery
)sender;
1833
DependencyProperty.Register("CanUserFilter", typeof(bool), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(false));
1849
DependencyProperty.Register("FilterItemContainerStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged));
1864
DependencyProperty.Register("AllFilterItemContainerStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged));
1868
RibbonGallery
gallery = (
RibbonGallery
)d;
1871
gallery.CoerceValue(
RibbonGallery
.FilterItemContainerStyleSelectorProperty);
1872
gallery.CoerceValue(
RibbonGallery
.CurrentFilterStyleProperty);
1891
typeof(
RibbonGallery
),
1896
RibbonGallery
gallery = (
RibbonGallery
)d;
1897
gallery.CoerceValue(
RibbonGallery
.CurrentFilterStyleProperty);
1910
RibbonGallery
gallery = (
RibbonGallery
)d;
1923
private
RibbonGallery
_gallery;
1925
internal RibbonGalleryDefaultFilterItemContainerStyleSelector(
RibbonGallery
inputGallery) : base()
1964
DependencyProperty.Register("FilterMenuButtonStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null));
1979
DependencyProperty.Register("FilterPaneContent", typeof(object), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null));
1994
DependencyProperty.Register("FilterPaneContentTemplate", typeof(DataTemplate), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null));
2009
DependencyProperty.Register("FilterItemTemplate", typeof(DataTemplate), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged));
2024
DependencyProperty.Register("AllFilterItemTemplate", typeof(DataTemplate), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged));
2028
RibbonGallery
gallery = (
RibbonGallery
)d;
2031
gallery.CoerceValue(
RibbonGallery
.FilterItemTemplateSelectorProperty);
2032
gallery.CoerceValue(
RibbonGallery
.CurrentFilterTemplateProperty);
2050
typeof(
RibbonGallery
),
2055
RibbonGallery
gallery = (
RibbonGallery
)d;
2056
gallery.CoerceValue(
RibbonGallery
.CurrentFilterTemplateProperty);
2068
RibbonGallery
gallery = (
RibbonGallery
)d;
2081
private
RibbonGallery
_gallery;
2083
internal RibbonGalleryDefaultFilterItemTemplateSelector(
RibbonGallery
inputGallery) : base()
2270
typeof(
RibbonGallery
),
2275
((
RibbonGallery
)d).RaiseEvent(new RoutedPropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue, RibbonMenuButton.RibbonIsSelectedChangedEvent));
2354
RibbonGallery
gallery = (
RibbonGallery
)d;
2389
gallery.CoerceValue(
RibbonGallery
.CurrentFilterStyleProperty);
2391
gallery.CoerceValue(
RibbonGallery
.CurrentFilterTemplateProperty);
2455
DependencyProperty.Register("CategoryTemplate", typeof(DataTemplate), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryTemplateChanged)));
2465
if (!PropertyHelper.IsDefaultValue(d,
RibbonGallery
.CategoryTemplateProperty))
2467
return d.GetValue(
RibbonGallery
.CategoryTemplateProperty);
2490
DependencyProperty.Register("CategoryStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryStyleChanged)));
2500
if (!PropertyHelper.IsDefaultValue(d,
RibbonGallery
.CategoryStyleProperty))
2502
return d.GetValue(
RibbonGallery
.CategoryStyleProperty);
2519
DependencyProperty.Register("GalleryItemTemplate", typeof(DataTemplate), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged)));
2528
DependencyProperty.Register("GalleryItemStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged)));
2532
RibbonGallery
gallery = (
RibbonGallery
)d;
2648
RibbonGallery
gallery = (
RibbonGallery
)sender;
2774
RibbonGallery
ribbonGallery = (
RibbonGallery
)sender;
2813
typeof(
RibbonGallery
),
2832
typeof(
RibbonGallery
),
2851
typeof(
RibbonGallery
),
2870
typeof(
RibbonGallery
),
2875
RibbonGallery
gallery = (
RibbonGallery
)d;
2935
RibbonGallery
gallery = (
RibbonGallery
)d;
2976
RibbonControlService.SmallImageSourceProperty.AddOwner(typeof(
RibbonGallery
));
2991
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3006
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3021
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3036
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3051
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3066
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3081
RibbonControlService.RibbonProperty.AddOwner(typeof(
RibbonGallery
));
3142
RibbonGallery
gallery = (
RibbonGallery
)sender;
3148
RibbonGallery
gallery = (
RibbonGallery
)sender;
3176
RibbonControlService.QuickAccessToolBarIdProperty.AddOwner(typeof(
RibbonGallery
));
3191
RibbonControlService.CanAddToQuickAccessToolBarDirectlyProperty.AddOwner(typeof(
RibbonGallery
),
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (17)
92
RibbonGallery
gallery = RibbonGallery;
99
if (
RibbonGallery
.VerifyEqual(item, selectedItem))
116
if (
RibbonGallery
.VerifyEqual(selectedValue, itemValue))
160
internal
RibbonGallery
RibbonGallery
223
RibbonGallery
gallery = galleryCategory.RibbonGallery;
232
if (e.Property == ItemTemplateProperty || e.Property ==
RibbonGallery
.GalleryItemTemplateProperty)
236
else if (e.Property == ItemContainerStyleProperty || e.Property ==
RibbonGallery
.GalleryItemStyleProperty)
257
RibbonGallery
.GalleryItemTemplateProperty);
267
RibbonGallery
.GalleryItemStyleProperty);
301
public static readonly DependencyProperty MinColumnCountProperty =
RibbonGallery
.MinColumnCountProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(1, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged), new CoerceValueCallback(CoerceMinColumnCount)));
312
RibbonGallery
.MinColumnCountProperty);
333
public static readonly DependencyProperty MaxColumnCountProperty =
RibbonGallery
.MaxColumnCountProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(int.MaxValue, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged), new CoerceValueCallback(CoerceMaxColumnCount)));
344
RibbonGallery
.MaxColumnCountProperty);
363
public static readonly DependencyProperty ColumnsStretchToFillProperty =
RibbonGallery
.ColumnsStretchToFillProperty.AddOwner(typeof(RibbonGalleryCategory),
388
public static readonly DependencyProperty IsSharedColumnSizeScopeProperty =
RibbonGallery
.IsSharedColumnSizeScopeProperty.AddOwner(typeof(RibbonGalleryCategory), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnNotifyPropertyChanged)));
553
if (selectedItem != null &&
RibbonGallery
.VerifyEqual(selectedItem, e.OldItems[i]))
560
if (highlightedItem != null &&
RibbonGallery
.VerifyEqual(highlightedItem, e.OldItems[i]))
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (6)
62
internal
RibbonGallery
RibbonGallery
186
RibbonGallery
gallery = category.RibbonGallery;
240
RibbonGallery
gallery = category.RibbonGallery;
294
RibbonGallery
gallery = RibbonGallery;
346
RibbonGallery
gallery = RibbonGallery;
371
RibbonGallery
gallery = RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (35)
614
RibbonGallery
gallery = nextElement as
RibbonGallery
;
643
RibbonGallery
gallery = previousElement as
RibbonGallery
;
658
private static bool NavigateUpToGallery(
RibbonGallery
gallery)
671
private static bool NavigateDownToGallery(
RibbonGallery
gallery)
722
return container != null && (container is
RibbonGallery
|| container.Focusable);
743
internal static bool NavigatePageAndHighlightRibbonGalleryItem(
RibbonGallery
gallery, RibbonGalleryItem galleryItem, FocusNavigationDirection direction)
754
RibbonGallery
gallery,
1797
new PropertyAndTransferMode () { Property =
RibbonGallery
.CanUserFilterProperty, Mode = TransferMode.AlwaysTransfer },
1798
new PropertyAndTransferMode () { Property =
RibbonGallery
.CategoryStyleProperty, Mode = TransferMode.AlwaysTransfer },
1799
new PropertyAndTransferMode () { Property =
RibbonGallery
.CategoryTemplateProperty, Mode = TransferMode.AlwaysTransfer },
1800
new PropertyAndTransferMode () { Property =
RibbonGallery
.CommandParameterProperty, Mode = TransferMode.AlwaysTransfer },
1801
new PropertyAndTransferMode () { Property =
RibbonGallery
.CommandProperty, Mode = TransferMode.AlwaysTransfer },
1802
new PropertyAndTransferMode () { Property =
RibbonGallery
.CommandTargetProperty, Mode = TransferMode.AlwaysTransfer },
1803
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer },
1804
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer },
1805
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterItemTemplateProperty, Mode = TransferMode.AlwaysTransfer },
1806
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer },
1807
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterMenuButtonStyleProperty, Mode = TransferMode.AlwaysTransfer },
1808
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterPaneContentProperty, Mode = TransferMode.AlwaysTransfer },
1809
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterPaneContentTemplateProperty, Mode = TransferMode.AlwaysTransfer },
1810
new PropertyAndTransferMode () { Property =
RibbonGallery
.GalleryItemStyleProperty, Mode = TransferMode.AlwaysTransfer },
1811
new PropertyAndTransferMode () { Property =
RibbonGallery
.GalleryItemTemplateProperty, Mode = TransferMode.AlwaysTransfer },
1812
new PropertyAndTransferMode () { Property =
RibbonGallery
.IsSharedColumnSizeScopeProperty, Mode = TransferMode.AlwaysTransfer },
1813
new PropertyAndTransferMode () { Property =
RibbonGallery
.IsSynchronizedWithCurrentItemProperty, Mode = TransferMode.AlwaysTransfer },
1814
new PropertyAndTransferMode () { Property =
RibbonGallery
.MaxColumnCountProperty, Mode = TransferMode.AlwaysTransfer },
1815
new PropertyAndTransferMode () { Property =
RibbonGallery
.MinColumnCountProperty, Mode = TransferMode.AlwaysTransfer },
1816
new PropertyAndTransferMode () { Property =
RibbonGallery
.PreviewCommandParameterProperty, Mode = TransferMode.AlwaysTransfer },
1817
new PropertyAndTransferMode () { Property =
RibbonGallery
.SelectedItemProperty, Mode = TransferMode.AlwaysTransfer },
1818
new PropertyAndTransferMode () { Property =
RibbonGallery
.SelectedValuePathProperty, Mode = TransferMode.AlwaysTransfer },
1819
new PropertyAndTransferMode () { Property =
RibbonGallery
.SelectedValueProperty, Mode = TransferMode.AlwaysTransfer },
1981
if (allowTransformations && clone is
RibbonGallery
)
2117
else if (original is
RibbonGallery
)
2227
else if (original is
RibbonGallery
)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (9)
532
bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is
RibbonGallery
);
552
if (itemContainer is RibbonMenuItem || itemContainer is
RibbonGallery
|| itemContainer is RibbonSeparator)
570
if (element is
RibbonGallery
)
596
if (element is
RibbonGallery
&& _galleryCount > 0)
605
container is
RibbonGallery
)
943
RibbonGallery
selectedGallery = _ribbonCurrentSelection as
RibbonGallery
;
959
RibbonGallery
selectedGallery = _ribbonCurrentSelection as
RibbonGallery
;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (9)
494
bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is
RibbonGallery
);
514
if (itemContainer is RibbonMenuItem || itemContainer is
RibbonGallery
|| itemContainer is RibbonSeparator)
531
container is
RibbonGallery
)
545
if (element is
RibbonGallery
)
567
if (element is
RibbonGallery
)
1553
RibbonGallery
selectedGallery = _ribbonCurrentSelection as
RibbonGallery
;
1569
RibbonGallery
selectedGallery = _ribbonCurrentSelection as
RibbonGallery
;