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;
1001
private
RibbonGallery
Gallery
1005
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)
1341
RibbonGallery
firstGallery = null;
1345
firstGallery = ItemContainerGenerator.ContainerFromItem(item) as
RibbonGallery
;
1359
RibbonGallery
gallery = element as
RibbonGallery
;
1591
internal
RibbonGallery
FirstGallery
1684
private
RibbonGallery
_firstGallery;
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (6)
256
if (owner is
RibbonGallery
)
490
bool ret = (item is RibbonMenuItem) || (item is RibbonSeparator) || (item is
RibbonGallery
);
510
if (itemContainer is RibbonMenuItem || itemContainer is
RibbonGallery
|| itemContainer is RibbonSeparator)
527
container is
RibbonGallery
)
541
if (element is
RibbonGallery
)
563
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));
363
filterItem.Command =
RibbonGallery
.FilterCommand;
424
typeof(
RibbonGallery
),
449
typeof(
RibbonGallery
),
460
RibbonGallery
gallery = (
RibbonGallery
)d;
485
typeof(
RibbonGallery
),
514
typeof(
RibbonGallery
),
531
typeof(
RibbonGallery
),
546
typeof(
RibbonGallery
),
583
RibbonGallery
me = (
RibbonGallery
)d;
600
TreeHelper.InvalidateMeasureForVisualAncestorPath<
RibbonGallery
>(category.ItemsHostSite, false);
615
EventManager.RegisterRoutedEvent("SelectionChanged", RoutingStrategy.Bubble, typeof(RoutedPropertyChangedEventHandler<object>), typeof(
RibbonGallery
));
667
typeof(
RibbonGallery
),
712
RibbonGallery
gallery = (
RibbonGallery
)d;
771
typeof(
RibbonGallery
),
816
RibbonGallery
gallery = (
RibbonGallery
)d;
888
typeof(
RibbonGallery
),
905
RibbonGallery
gallery = (
RibbonGallery
)d;
906
ValueSource valueSource = DependencyPropertyHelper.GetValueSource(gallery,
RibbonGallery
.SelectedValueProperty);
915
DependencyProperty.Register("IsSynchronizedWithCurrentItem", typeof(bool?), typeof(
RibbonGallery
),
932
RibbonGallery
gallery = (
RibbonGallery
)d;
957
IsSynchronizedWithCurrentItemInternal = IsInitialized && (
RibbonGallery
.GetSourceCollectionView(this) != null);
1082
SourceCollectionView =
RibbonGallery
.GetSourceCollectionView(this);
1574
typeof(
RibbonGallery
),
1614
RibbonGallery
gallery = (
RibbonGallery
)d;
1667
RibbonGallery
gallery = (
RibbonGallery
)d;
1782
RibbonGallery
rg = sender as
RibbonGallery
;
1795
RibbonGallery
rg = (
RibbonGallery
)sender;
1829
DependencyProperty.Register("CanUserFilter", typeof(bool), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(false));
1845
DependencyProperty.Register("FilterItemContainerStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged));
1860
DependencyProperty.Register("AllFilterItemContainerStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged));
1864
RibbonGallery
gallery = (
RibbonGallery
)d;
1867
gallery.CoerceValue(
RibbonGallery
.FilterItemContainerStyleSelectorProperty);
1868
gallery.CoerceValue(
RibbonGallery
.CurrentFilterStyleProperty);
1887
typeof(
RibbonGallery
),
1892
RibbonGallery
gallery = (
RibbonGallery
)d;
1893
gallery.CoerceValue(
RibbonGallery
.CurrentFilterStyleProperty);
1906
RibbonGallery
gallery = (
RibbonGallery
)d;
1919
private
RibbonGallery
_gallery;
1921
internal RibbonGalleryDefaultFilterItemContainerStyleSelector(
RibbonGallery
inputGallery) : base()
1960
DependencyProperty.Register("FilterMenuButtonStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null));
1975
DependencyProperty.Register("FilterPaneContent", typeof(object), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null));
1990
DependencyProperty.Register("FilterPaneContentTemplate", typeof(DataTemplate), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null));
2005
DependencyProperty.Register("FilterItemTemplate", typeof(DataTemplate), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged));
2020
DependencyProperty.Register("AllFilterItemTemplate", typeof(DataTemplate), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged));
2024
RibbonGallery
gallery = (
RibbonGallery
)d;
2027
gallery.CoerceValue(
RibbonGallery
.FilterItemTemplateSelectorProperty);
2028
gallery.CoerceValue(
RibbonGallery
.CurrentFilterTemplateProperty);
2046
typeof(
RibbonGallery
),
2051
RibbonGallery
gallery = (
RibbonGallery
)d;
2052
gallery.CoerceValue(
RibbonGallery
.CurrentFilterTemplateProperty);
2064
RibbonGallery
gallery = (
RibbonGallery
)d;
2077
private
RibbonGallery
_gallery;
2079
internal RibbonGalleryDefaultFilterItemTemplateSelector(
RibbonGallery
inputGallery) : base()
2266
typeof(
RibbonGallery
),
2271
((
RibbonGallery
)d).RaiseEvent(new RoutedPropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue, RibbonMenuButton.RibbonIsSelectedChangedEvent));
2350
RibbonGallery
gallery = (
RibbonGallery
)d;
2385
gallery.CoerceValue(
RibbonGallery
.CurrentFilterStyleProperty);
2387
gallery.CoerceValue(
RibbonGallery
.CurrentFilterTemplateProperty);
2451
DependencyProperty.Register("CategoryTemplate", typeof(DataTemplate), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryTemplateChanged)));
2461
if (!PropertyHelper.IsDefaultValue(d,
RibbonGallery
.CategoryTemplateProperty))
2463
return d.GetValue(
RibbonGallery
.CategoryTemplateProperty);
2486
DependencyProperty.Register("CategoryStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryStyleChanged)));
2496
if (!PropertyHelper.IsDefaultValue(d,
RibbonGallery
.CategoryStyleProperty))
2498
return d.GetValue(
RibbonGallery
.CategoryStyleProperty);
2515
DependencyProperty.Register("GalleryItemTemplate", typeof(DataTemplate), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged)));
2524
DependencyProperty.Register("GalleryItemStyle", typeof(Style), typeof(
RibbonGallery
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged)));
2528
RibbonGallery
gallery = (
RibbonGallery
)d;
2644
RibbonGallery
gallery = (
RibbonGallery
)sender;
2770
RibbonGallery
ribbonGallery = (
RibbonGallery
)sender;
2809
typeof(
RibbonGallery
),
2828
typeof(
RibbonGallery
),
2847
typeof(
RibbonGallery
),
2866
typeof(
RibbonGallery
),
2871
RibbonGallery
gallery = (
RibbonGallery
)d;
2931
RibbonGallery
gallery = (
RibbonGallery
)d;
2972
RibbonControlService.SmallImageSourceProperty.AddOwner(typeof(
RibbonGallery
));
2987
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3002
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3017
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3032
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3047
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3062
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(
RibbonGallery
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
3077
RibbonControlService.RibbonProperty.AddOwner(typeof(
RibbonGallery
));
3138
RibbonGallery
gallery = (
RibbonGallery
)sender;
3144
RibbonGallery
gallery = (
RibbonGallery
)sender;
3172
RibbonControlService.QuickAccessToolBarIdProperty.AddOwner(typeof(
RibbonGallery
));
3187
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)
610
RibbonGallery
gallery = nextElement as
RibbonGallery
;
639
RibbonGallery
gallery = previousElement as
RibbonGallery
;
654
private static bool NavigateUpToGallery(
RibbonGallery
gallery)
667
private static bool NavigateDownToGallery(
RibbonGallery
gallery)
718
return container != null && (container is
RibbonGallery
|| container.Focusable);
739
internal static bool NavigatePageAndHighlightRibbonGalleryItem(
RibbonGallery
gallery, RibbonGalleryItem galleryItem, FocusNavigationDirection direction)
750
RibbonGallery
gallery,
1793
new PropertyAndTransferMode () { Property =
RibbonGallery
.CanUserFilterProperty, Mode = TransferMode.AlwaysTransfer },
1794
new PropertyAndTransferMode () { Property =
RibbonGallery
.CategoryStyleProperty, Mode = TransferMode.AlwaysTransfer },
1795
new PropertyAndTransferMode () { Property =
RibbonGallery
.CategoryTemplateProperty, Mode = TransferMode.AlwaysTransfer },
1796
new PropertyAndTransferMode () { Property =
RibbonGallery
.CommandParameterProperty, Mode = TransferMode.AlwaysTransfer },
1797
new PropertyAndTransferMode () { Property =
RibbonGallery
.CommandProperty, Mode = TransferMode.AlwaysTransfer },
1798
new PropertyAndTransferMode () { Property =
RibbonGallery
.CommandTargetProperty, Mode = TransferMode.AlwaysTransfer },
1799
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer },
1800
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer },
1801
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterItemTemplateProperty, Mode = TransferMode.AlwaysTransfer },
1802
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer },
1803
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterMenuButtonStyleProperty, Mode = TransferMode.AlwaysTransfer },
1804
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterPaneContentProperty, Mode = TransferMode.AlwaysTransfer },
1805
new PropertyAndTransferMode () { Property =
RibbonGallery
.FilterPaneContentTemplateProperty, Mode = TransferMode.AlwaysTransfer },
1806
new PropertyAndTransferMode () { Property =
RibbonGallery
.GalleryItemStyleProperty, Mode = TransferMode.AlwaysTransfer },
1807
new PropertyAndTransferMode () { Property =
RibbonGallery
.GalleryItemTemplateProperty, Mode = TransferMode.AlwaysTransfer },
1808
new PropertyAndTransferMode () { Property =
RibbonGallery
.IsSharedColumnSizeScopeProperty, Mode = TransferMode.AlwaysTransfer },
1809
new PropertyAndTransferMode () { Property =
RibbonGallery
.IsSynchronizedWithCurrentItemProperty, Mode = TransferMode.AlwaysTransfer },
1810
new PropertyAndTransferMode () { Property =
RibbonGallery
.MaxColumnCountProperty, Mode = TransferMode.AlwaysTransfer },
1811
new PropertyAndTransferMode () { Property =
RibbonGallery
.MinColumnCountProperty, Mode = TransferMode.AlwaysTransfer },
1812
new PropertyAndTransferMode () { Property =
RibbonGallery
.PreviewCommandParameterProperty, Mode = TransferMode.AlwaysTransfer },
1813
new PropertyAndTransferMode () { Property =
RibbonGallery
.SelectedItemProperty, Mode = TransferMode.AlwaysTransfer },
1814
new PropertyAndTransferMode () { Property =
RibbonGallery
.SelectedValuePathProperty, Mode = TransferMode.AlwaysTransfer },
1815
new PropertyAndTransferMode () { Property =
RibbonGallery
.SelectedValueProperty, Mode = TransferMode.AlwaysTransfer },
1977
if (allowTransformations && clone is
RibbonGallery
)
2113
else if (original is
RibbonGallery
)
2223
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
;