1 instantiation of RibbonGalleryItem
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
84
return new
RibbonGalleryItem
();
101 references to RibbonGalleryItem
System.Windows.Controls.Ribbon (101)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
170
Collection<
RibbonGalleryItem
> selectedContainers = ((RibbonGallery)Owner).SelectedContainers;
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (3)
33
public RibbonGalleryItemAutomationPeer(
RibbonGalleryItem
owner)
52
string accessKey = ((
RibbonGalleryItem
)Owner).KeyTip;
68
RibbonToolTip toolTip = ((
RibbonGalleryItem
)Owner).ToolTip as RibbonToolTip;
Microsoft\Windows\Automation\Peers\RibbonGalleryItemDataAutomationPeer.cs (8)
87
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
107
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
121
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
132
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (9)
749
RibbonGalleryItem
galleryItem =
750
matchedGalleryCategory.ItemContainerGenerator.ContainerFromItem(matchedItem) as
RibbonGalleryItem
;
1030
RibbonGalleryItem
focusedGalleryItem = null;
1446
RibbonGalleryItem
focusedGalleryItem = Keyboard.FocusedElement as
RibbonGalleryItem
;
1604
_firstGallery.RemoveHandler(
RibbonGalleryItem
.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1605
_firstGallery.RemoveHandler(
RibbonGalleryItem
.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1617
_firstGallery.AddHandler(
RibbonGalleryItem
.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1618
_firstGallery.AddHandler(
RibbonGalleryItem
.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (31)
46
[StyleTypedProperty(Property = "GalleryItemStyle", StyleTargetType = typeof(
RibbonGalleryItem
))]
726
RibbonGalleryItem
galleryItem = null;
748
RibbonGalleryItem
galleryItem = null;
831
RibbonGalleryItem
galleryItem = null;
862
RibbonGalleryItem
galleryItem = null;
1010
RibbonGalleryItem
galleryItem;
1250
internal void ChangeSelection(object item,
RibbonGalleryItem
container, bool isSelected)
1280
container.OnUnselected(new RoutedEventArgs(
RibbonGalleryItem
.UnselectedEvent, container));
1290
RibbonGalleryItem
galleryItem = _selectedContainers[i];
1292
galleryItem.OnUnselected(new RoutedEventArgs(
RibbonGalleryItem
.UnselectedEvent, galleryItem));
1360
container.OnSelected(new RoutedEventArgs(
RibbonGalleryItem
.SelectedEvent, container));
1382
out
RibbonGalleryItem
galleryItem)
1402
galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as
RibbonGalleryItem
;
1420
out
RibbonGalleryItem
galleryItem)
1445
galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as
RibbonGalleryItem
;
1539
internal Collection<
RibbonGalleryItem
> SelectedContainers
1628
RibbonGalleryItem
galleryItem = null;
1650
RibbonGalleryItem
galleryItem = null;
1701
internal void ChangeHighlight(object item,
RibbonGalleryItem
container, bool isHighlighted)
1755
internal
RibbonGalleryItem
HighlightedContainer
2158
RibbonGalleryItem
galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as
RibbonGalleryItem
;
2223
RibbonGalleryItem
galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as
RibbonGalleryItem
;
2751
RibbonGalleryItem
focusedGalleryItem = focusedElement as
RibbonGalleryItem
;
2754
RibbonGalleryItem
highlightedGalleryItem;
3120
RibbonGalleryItem
galleryItem = null;
3223
private Collection<
RibbonGalleryItem
> _selectedContainers = new Collection<
RibbonGalleryItem
>();
3224
private
RibbonGalleryItem
_highlightedContainer;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (8)
42
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(
RibbonGalleryItem
))]
79
return item is
RibbonGalleryItem
;
94
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)element;
141
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)element;
523
RibbonGalleryItem
galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as
RibbonGalleryItem
;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (28)
42
Type ownerType = typeof(
RibbonGalleryItem
);
48
AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip));
80
EventManager.RegisterRoutedEvent("Selected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
RibbonGalleryItem
));
107
((
RibbonGalleryItem
)arg).BringIntoView();
123
EventManager.RegisterRoutedEvent("Unselected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
RibbonGalleryItem
));
164
typeof(
RibbonGalleryItem
),
181
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)d;
213
typeof(
RibbonGalleryItem
),
236
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)d;
263
typeof(
RibbonGalleryItem
),
513
RibbonControlService.RibbonProperty.AddOwner(typeof(
RibbonGalleryItem
));
527
RibbonControlService.MouseOverBorderBrushProperty.AddOwner(typeof(
RibbonGalleryItem
));
542
RibbonControlService.MouseOverBackgroundProperty.AddOwner(typeof(
RibbonGalleryItem
));
557
RibbonControlService.PressedBorderBrushProperty.AddOwner(typeof(
RibbonGalleryItem
));
572
RibbonControlService.PressedBackgroundProperty.AddOwner(typeof(
RibbonGalleryItem
));
587
RibbonControlService.CheckedBackgroundProperty.AddOwner(typeof(
RibbonGalleryItem
));
602
RibbonControlService.CheckedBorderBrushProperty.AddOwner(typeof(
RibbonGalleryItem
));
621
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
636
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
651
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
666
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
681
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
696
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
745
KeyTipService.KeyTipProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnKeyTipChanged), new CoerceValueCallback(CoerceKeyTip)));
783
((
RibbonGalleryItem
)sender).OnActivatingKeyTip(e);
798
((
RibbonGalleryItem
)sender).OnKeyTipAccessed(e);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (13)
729
internal static bool NavigateAndHighlightGalleryItem(
RibbonGalleryItem
focusedElement, FocusNavigationDirection direction)
733
RibbonGalleryItem
predictedFocus = focusedElement.PredictFocus(direction) as
RibbonGalleryItem
;
744
internal static bool NavigatePageAndHighlightRibbonGalleryItem(RibbonGallery gallery,
RibbonGalleryItem
galleryItem, FocusNavigationDirection direction)
746
RibbonGalleryItem
highlightedGalleryItem;
756
RibbonGalleryItem
galleryItem,
758
out
RibbonGalleryItem
highlightedGalleryItem)
776
galleryItem = category != null && category.Items.Count > 0 ? category.ItemContainerGenerator.ContainerFromIndex(0) as
RibbonGalleryItem
: null;
823
highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(startItemIndex) as
RibbonGalleryItem
;
852
highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(startItemIndex) as
RibbonGalleryItem
;
890
highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(itemIndex) as
RibbonGalleryItem
;
1833
new PropertyAndTransferMode () { Property =
RibbonGalleryItem
.IsSelectedProperty, Mode = TransferMode.AlwaysTransfer },
2072
else if (original is
RibbonGalleryItem
)