1 instantiation of RibbonGalleryItem
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
79
return new
RibbonGalleryItem
();
101 references to RibbonGalleryItem
System.Windows.Controls.Ribbon (101)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
167
Collection<
RibbonGalleryItem
> selectedContainers = ((RibbonGallery)Owner).SelectedContainers;
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (3)
29
public RibbonGalleryItemAutomationPeer(
RibbonGalleryItem
owner)
48
string accessKey = ((
RibbonGalleryItem
)Owner).KeyTip;
64
RibbonToolTip toolTip = ((
RibbonGalleryItem
)Owner).ToolTip as RibbonToolTip;
Microsoft\Windows\Automation\Peers\RibbonGalleryItemDataAutomationPeer.cs (8)
86
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
103
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
117
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
128
RibbonGalleryItem
ribbonGalleryItem = GetWrapper() as
RibbonGalleryItem
;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (9)
750
RibbonGalleryItem
galleryItem =
751
matchedGalleryCategory.ItemContainerGenerator.ContainerFromItem(matchedItem) as
RibbonGalleryItem
;
1028
RibbonGalleryItem
focusedGalleryItem = null;
1444
RibbonGalleryItem
focusedGalleryItem = Keyboard.FocusedElement as
RibbonGalleryItem
;
1602
_firstGallery.RemoveHandler(
RibbonGalleryItem
.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1603
_firstGallery.RemoveHandler(
RibbonGalleryItem
.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1615
_firstGallery.AddHandler(
RibbonGalleryItem
.SelectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
1616
_firstGallery.AddHandler(
RibbonGalleryItem
.UnselectedEvent, new RoutedEventHandler(OnGalleryItemSelectionChanged));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (31)
44
[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
;
1541
internal Collection<
RibbonGalleryItem
> SelectedContainers
1630
RibbonGalleryItem
galleryItem = null;
1652
RibbonGalleryItem
galleryItem = null;
1703
internal void ChangeHighlight(object item,
RibbonGalleryItem
container, bool isHighlighted)
1757
internal
RibbonGalleryItem
HighlightedContainer
2160
RibbonGalleryItem
galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as
RibbonGalleryItem
;
2225
RibbonGalleryItem
galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as
RibbonGalleryItem
;
2750
RibbonGalleryItem
focusedGalleryItem = focusedElement as
RibbonGalleryItem
;
2753
RibbonGalleryItem
highlightedGalleryItem;
3119
RibbonGalleryItem
galleryItem = null;
3222
private Collection<
RibbonGalleryItem
> _selectedContainers = new Collection<
RibbonGalleryItem
>();
3223
private
RibbonGalleryItem
_highlightedContainer;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (8)
37
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(
RibbonGalleryItem
))]
74
return item is
RibbonGalleryItem
;
89
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)element;
136
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)element;
515
RibbonGalleryItem
galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as
RibbonGalleryItem
;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (28)
40
Type ownerType = typeof(
RibbonGalleryItem
);
46
AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip));
78
EventManager.RegisterRoutedEvent("Selected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
RibbonGalleryItem
));
105
((
RibbonGalleryItem
)arg).BringIntoView();
121
EventManager.RegisterRoutedEvent("Unselected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
RibbonGalleryItem
));
162
typeof(
RibbonGalleryItem
),
179
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)d;
211
typeof(
RibbonGalleryItem
),
234
RibbonGalleryItem
galleryItem = (
RibbonGalleryItem
)d;
261
typeof(
RibbonGalleryItem
),
511
RibbonControlService.RibbonProperty.AddOwner(typeof(
RibbonGalleryItem
));
525
RibbonControlService.MouseOverBorderBrushProperty.AddOwner(typeof(
RibbonGalleryItem
));
540
RibbonControlService.MouseOverBackgroundProperty.AddOwner(typeof(
RibbonGalleryItem
));
555
RibbonControlService.PressedBorderBrushProperty.AddOwner(typeof(
RibbonGalleryItem
));
570
RibbonControlService.PressedBackgroundProperty.AddOwner(typeof(
RibbonGalleryItem
));
585
RibbonControlService.CheckedBackgroundProperty.AddOwner(typeof(
RibbonGalleryItem
));
600
RibbonControlService.CheckedBorderBrushProperty.AddOwner(typeof(
RibbonGalleryItem
));
619
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
634
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
649
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
664
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
679
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
694
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged)));
743
KeyTipService.KeyTipProperty.AddOwner(typeof(
RibbonGalleryItem
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnKeyTipChanged), new CoerceValueCallback(CoerceKeyTip)));
781
((
RibbonGalleryItem
)sender).OnActivatingKeyTip(e);
796
((
RibbonGalleryItem
)sender).OnKeyTipAccessed(e);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (13)
728
internal static bool NavigateAndHighlightGalleryItem(
RibbonGalleryItem
focusedElement, FocusNavigationDirection direction)
732
RibbonGalleryItem
predictedFocus = focusedElement.PredictFocus(direction) as
RibbonGalleryItem
;
743
internal static bool NavigatePageAndHighlightRibbonGalleryItem(RibbonGallery gallery,
RibbonGalleryItem
galleryItem, FocusNavigationDirection direction)
745
RibbonGalleryItem
highlightedGalleryItem;
755
RibbonGalleryItem
galleryItem,
757
out
RibbonGalleryItem
highlightedGalleryItem)
775
galleryItem = category != null && category.Items.Count > 0 ? category.ItemContainerGenerator.ContainerFromIndex(0) as
RibbonGalleryItem
: null;
822
highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(startItemIndex) as
RibbonGalleryItem
;
851
highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(startItemIndex) as
RibbonGalleryItem
;
889
highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(itemIndex) as
RibbonGalleryItem
;
1808
new PropertyAndTransferMode () { Property =
RibbonGalleryItem
.IsSelectedProperty, Mode = TransferMode.AlwaysTransfer },
2047
else if (original is
RibbonGalleryItem
)