1 instantiation of RibbonGalleryItem
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
78
return new
RibbonGalleryItem
();
101 references to RibbonGalleryItem
System.Windows.Controls.Ribbon (101)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
166
Collection<
RibbonGalleryItem
> selectedContainers = ((RibbonGallery)Owner).SelectedContainers;
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (3)
28
public RibbonGalleryItemAutomationPeer(
RibbonGalleryItem
owner)
47
string accessKey = ((
RibbonGalleryItem
)Owner).KeyTip;
63
RibbonToolTip toolTip = ((
RibbonGalleryItem
)Owner).ToolTip as RibbonToolTip;
Microsoft\Windows\Automation\Peers\RibbonGalleryItemDataAutomationPeer.cs (8)
85
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
102
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
116
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
127
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (9)
746
RibbonGalleryItem
galleryItem =
747
matchedGalleryCategory.ItemContainerGenerator.ContainerFromItem(matchedItem) as
RibbonGalleryItem
;
1024
RibbonGalleryItem
focusedGalleryItem = null;
1440
RibbonGalleryItem
focusedGalleryItem = Keyboard.FocusedElement as
RibbonGalleryItem
;
1598
_firstGallery.RemoveHandler(
RibbonGalleryItem
.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1599
_firstGallery.RemoveHandler(
RibbonGalleryItem
.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1611
_firstGallery.AddHandler(
RibbonGalleryItem
.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1612
_firstGallery.AddHandler(
RibbonGalleryItem
.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (31)
43
[StyleTypedProperty(Property = "GalleryItemStyle", StyleTargetType = typeof(
RibbonGalleryItem
))]
725
RibbonGalleryItem
galleryItem = null;
747
RibbonGalleryItem
galleryItem = null;
830
RibbonGalleryItem
galleryItem = null;
861
RibbonGalleryItem
galleryItem = null;
1009
RibbonGalleryItem
galleryItem;
1249
internal void ChangeSelection(object item,
RibbonGalleryItem
container, bool isSelected)
1279
container.OnUnselected(new RoutedEventArgs(
RibbonGalleryItem
.UnselectedEvent, container));
1289
RibbonGalleryItem
galleryItem = _selectedContainers[i];
1291
galleryItem.OnUnselected(new RoutedEventArgs(
RibbonGalleryItem
.UnselectedEvent, galleryItem));
1359
container.OnSelected(new RoutedEventArgs(
RibbonGalleryItem
.SelectedEvent, container));
1381
out
RibbonGalleryItem
galleryItem)
1401
galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as
RibbonGalleryItem
;
1419
out
RibbonGalleryItem
galleryItem)
1444
galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as
RibbonGalleryItem
;
1540
internal Collection<
RibbonGalleryItem
> SelectedContainers
1629
RibbonGalleryItem
galleryItem = null;
1651
RibbonGalleryItem
galleryItem = null;
1702
internal void ChangeHighlight(object item,
RibbonGalleryItem
container, bool isHighlighted)
1750
internal
RibbonGalleryItem
HighlightedContainer
2153
RibbonGalleryItem
galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as
RibbonGalleryItem
;
2218
RibbonGalleryItem
galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as
RibbonGalleryItem
;
2743
RibbonGalleryItem
focusedGalleryItem = focusedElement as
RibbonGalleryItem
;
2746
RibbonGalleryItem
highlightedGalleryItem;
3112
RibbonGalleryItem
galleryItem = null;
3215
private Collection<
RibbonGalleryItem
> _selectedContainers = new Collection<
RibbonGalleryItem
>();
3216
private
RibbonGalleryItem
_highlightedContainer;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (8)
36
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(
RibbonGalleryItem
))]
73
return item is
RibbonGalleryItem
;
88
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)element;
135
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)element;
514
RibbonGalleryItem
galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as
RibbonGalleryItem
;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (28)
39
Type ownerType = typeof(
RibbonGalleryItem
);
45
AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip));
77
EventManager.RegisterRoutedEvent("Selected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
RibbonGalleryItem
));
104
((
RibbonGalleryItem
)arg).BringIntoView();
120
EventManager.RegisterRoutedEvent("Unselected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
RibbonGalleryItem
));
161
typeof(
RibbonGalleryItem
),
178
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)d;
210
typeof(
RibbonGalleryItem
),
233
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)d;
260
typeof(
RibbonGalleryItem
),
510
RibbonControlService.RibbonProperty.AddOwner(typeof(
RibbonGalleryItem
));
524
RibbonControlService.MouseOverBorderBrushProperty.AddOwner(typeof(
RibbonGalleryItem
));
539
RibbonControlService.MouseOverBackgroundProperty.AddOwner(typeof(
RibbonGalleryItem
));
554
RibbonControlService.PressedBorderBrushProperty.AddOwner(typeof(
RibbonGalleryItem
));
569
RibbonControlService.PressedBackgroundProperty.AddOwner(typeof(
RibbonGalleryItem
));
584
RibbonControlService.CheckedBackgroundProperty.AddOwner(typeof(
RibbonGalleryItem
));
599
RibbonControlService.CheckedBorderBrushProperty.AddOwner(typeof(
RibbonGalleryItem
));
618
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
633
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
648
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
663
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
678
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
693
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
742
KeyTipService.KeyTipProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnKeyTipChanged), new CoerceValueCallback(CoerceKeyTip)));
780
((
RibbonGalleryItem
)sender).OnActivatingKeyTip(e);
795
((
RibbonGalleryItem
)sender).OnKeyTipAccessed(e);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (13)
727
internal static bool NavigateAndHighlightGalleryItem(
RibbonGalleryItem
focusedElement, FocusNavigationDirection direction)
731
RibbonGalleryItem
predictedFocus = focusedElement.PredictFocus(direction) as
RibbonGalleryItem
;
742
internal static bool NavigatePageAndHighlightRibbonGalleryItem(RibbonGallery gallery,
RibbonGalleryItem
galleryItem, FocusNavigationDirection direction)
744
RibbonGalleryItem
highlightedGalleryItem;
754
RibbonGalleryItem
galleryItem,
756
out
RibbonGalleryItem
highlightedGalleryItem)
774
galleryItem = category != null && category.Items.Count > 0 ? category.ItemContainerGenerator.ContainerFromIndex(0) as
RibbonGalleryItem
: null;
821
highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(startItemIndex) as
RibbonGalleryItem
;
850
highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(startItemIndex) as
RibbonGalleryItem
;
888
highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(itemIndex) as
RibbonGalleryItem
;
1807
new PropertyAndTransferMode () { Property =
RibbonGalleryItem
.IsSelectedProperty, Mode = TransferMode.AlwaysTransfer },
2046
else if (original is
RibbonGalleryItem
)