332 references to RibbonHelper
System.Windows.Controls.Ribbon (332)
Microsoft\Windows\Automation\Peers\RibbonApplicationMenuAutomationPeer.cs (2)
60
children.Add(
RibbonHelper
.CreatePeer(element));
70
children.Add(
RibbonHelper
.CreatePeer(element));
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
135
children.Insert(0,
RibbonHelper
.CreatePeer(filterHost));
Microsoft\Windows\Controls\KeyTipService.cs (14)
804
PresentationSource targetSource =
RibbonHelper
.GetPresentationSourceFromVisual(_currentGlobalScope as Visual);
921
CultureInfo computedCulture =
RibbonHelper
.GetCultureInfo(element);
941
RibbonHelper
.Beep();
999
RibbonHelper
.Beep();
1186
RibbonHelper
.IsAncestorOf(stackParentScope, parentScope))
1263
PresentationSource targetSource =
RibbonHelper
.GetPresentationSourceFromVisual(_currentGlobalScope as Visual);
1360
UIElement uie =
RibbonHelper
.GetContainingUIElement(element);
1385
UIElement adornedElement =
RibbonHelper
.GetContainingUIElement(activatingEventArgs.PlacementTarget == null ? element : activatingEventArgs.PlacementTarget);
1562
RibbonHelper
.AddHandler(element, ActivatingKeyTipEvent, handler);
1567
RibbonHelper
.RemoveHandler(element, ActivatingKeyTipEvent, handler);
1574
RibbonHelper
.AddHandler(element, PreviewKeyTipAccessedEvent, handler);
1579
RibbonHelper
.RemoveHandler(element, PreviewKeyTipAccessedEvent, handler);
1586
RibbonHelper
.AddHandler(element, KeyTipAccessedEvent, handler);
1591
RibbonHelper
.RemoveHandler(element, KeyTipAccessedEvent, handler);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (3)
67
RibbonHelper
.InitializeStarLayoutManager(this);
264
RibbonHelper
.InitializeStarLayoutManager(this);
625
TreeHelper.InvalidateMeasureForVisualAncestorPath(this,
RibbonHelper
.IsISupportStarLayout);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (3)
41
RibbonHelper
.InitializeStarLayoutManager(this);
430
TreeHelper.InvalidateMeasureForVisualAncestorPath(this,
RibbonHelper
.IsISupportStarLayout);
452
TreeHelper.InvalidateMeasureForVisualAncestorPath(this,
RibbonHelper
.IsISupportStarLayout);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (29)
105
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
1047
var itemTemplate =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty);
1048
var itemTemplateSelector =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty);
1049
var itemStringFormat =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty);
1050
var itemContainerStyle =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty);
1051
var itemContainerStyleSelector =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty);
1052
var alternationCount =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty);
1053
var itemBindingGroup =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);
1055
var headerTemplate =
RibbonHelper
.GetValueAndValueSource(headeredItemsControl, HeaderedItemsControl.HeaderTemplateProperty);
1056
var headerTemplateSelector =
RibbonHelper
.GetValueAndValueSource(headeredItemsControl, HeaderedItemsControl.HeaderTemplateSelectorProperty);
1057
var headerStringFormat =
RibbonHelper
.GetValueAndValueSource(headeredItemsControl, HeaderedItemsControl.HeaderStringFormatProperty);
1066
RibbonHelper
.IgnoreDPInheritedFromParentItemsControl(
1138
RibbonHelper
.AsyncSetFocusAndCapture(this,
1269
RibbonHelper
.HandleIsDropDownChanged(ribbon,
1276
ribbon._retainFocusOnEscape =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
1786
RibbonHelper
.HandleLostMouseCapture(this,
1802
RibbonHelper
.HandleClickThrough(this, e, _itemsPresenterPopup.TryGetChild());
1814
if (!
RibbonHelper
.IsAncestorOf(_itemsPresenterPopup.TryGetChild(), e.OriginalSource as DependencyObject) &&
1815
!
RibbonHelper
.IsAncestorOf(_tabHeaderItemsControl, e.OriginalSource as DependencyObject))
1830
RibbonHelper
.HandleDismissPopup(e,
1873
RibbonHelper
.HandleDropDownKeyDown(this, e,
2368
if (targetSource ==
RibbonHelper
.GetPresentationSourceFromVisual(this))
2380
if (targetSource ==
RibbonHelper
.GetPresentationSourceFromVisual(this))
2395
RibbonHelper
.RestoreFocusAndCapture(this, this);
2431
RibbonHelper
.AsyncSetFocusAndCapture(this,
2459
!
RibbonHelper
.ExistsInQAT(obj))
2658
RibbonHelper
.PopulatePropertyLists();
2661
e.CloneInstance = (UIElement)
RibbonHelper
.CreateClone(e.InstanceToBeCloned, allowTransformations);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
455
DependencyObject nextFocus =
RibbonHelper
.PredictFocus(element, FocusNavigationDirection.Down);
496
DependencyObject nextFocus =
RibbonHelper
.PredictFocus(element, FocusNavigationDirection.Up);
529
DependencyObject nextFocus =
RibbonHelper
.PredictFocus(element, FocusNavigationDirection.Left);
533
if (
RibbonHelper
.Focus(nextFocus))
561
if (
RibbonHelper
.Focus(nextFocus))
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (5)
109
RibbonHelper
.SetApplicationMenuLevel(this.Level == RibbonApplicationMenuItemLevel.Top, element);
131
RibbonHelper
.UnhookPopupForTopLevelMenuItem(this);
142
RibbonHelper
.HookPopupForTopLevelMenuItem(this, ParentItemsControl);
180
return
RibbonHelper
.CoerceIsSubmenuOpenForTopLevelItem(menuItem, menuItem.ParentItemsControl, (bool)baseValue);
232
RibbonHelper
.OnApplicationMenuItemUpDownKeyDown(e, this);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (5)
107
RibbonHelper
.SetApplicationMenuLevel(this.Level == RibbonApplicationMenuItemLevel.Top, element);
129
RibbonHelper
.UnhookPopupForTopLevelMenuItem(this);
140
RibbonHelper
.HookPopupForTopLevelMenuItem(this, ParentItemsControl);
178
return
RibbonHelper
.CoerceIsSubmenuOpenForTopLevelItem(menuItem, menuItem.ParentItemsControl, (bool)baseValue);
245
RibbonHelper
.OnApplicationMenuItemUpDownKeyDown(e, this);
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (13)
49
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
51
CommandProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnCommandChanged));
52
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
124
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
139
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
154
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
169
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
184
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
199
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
471
RibbonHelper
.EnableFocusVisual(this);
477
RibbonHelper
.DisableFocusVisual(this);
579
RibbonHelper
.SetKeyTipPlacementForButton(this, e, _image);
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (13)
48
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
50
CommandProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnCommandChanged));
51
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
123
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
138
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
153
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
168
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
183
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
198
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
487
RibbonHelper
.EnableFocusVisual(this);
493
RibbonHelper
.DisableFocusVisual(this);
586
RibbonHelper
.SetKeyTipPlacementForTextBox(this, e, _checkBorder);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (16)
174
RetainFocusOnEscape =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
212
RibbonHelper
.EnableFocusVisual(this);
216
RibbonHelper
.DisableFocusVisual(this);
962
RibbonHelper
.HandleDropDownKeyDown(this,
1051
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView);
1055
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
1072
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView);
1077
handled =
RibbonHelper
.NavigateAndHighlightGalleryItem(focusedGalleryItem, FocusNavigationDirection.Up);
1101
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
1106
handled =
RibbonHelper
.NavigateAndHighlightGalleryItem(focusedGalleryItem, FocusNavigationDirection.Down);
1124
RibbonHelper
.NavigateAndHighlightGalleryItem(focusedGalleryItem, FocusNavigationDirection.Right);
1136
RibbonHelper
.NavigateAndHighlightGalleryItem(focusedGalleryItem, FocusNavigationDirection.Left);
1145
RibbonHelper
.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Up);
1153
RibbonHelper
.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Down);
1560
RibbonHelper
.SetKeyTipPlacementForTextBox(this, e, EditableTextBoxSite);
1572
RibbonHelper
.OpenParentRibbonGroupDropDownSync(this, TemplateApplied);
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (2)
129
RibbonHelper
.ClearPseudoInheritedProperties(_templateRoot);
182
RibbonHelper
.TransferPseudoInheritedProperties(this, _templateRoot);
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
622
RibbonHelper
.FindAndHookPopup(this, ref _popup);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
206
get { return
RibbonHelper
.GetIsContentTooltip(VisualChild, Header); }
207
set {
RibbonHelper
.SetContentAsToolTip(this, VisualChild, Header, value); }
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (2)
90
return
RibbonHelper
.FindContainer(this, 0, 1, null, HasTabs) as RibbonContextualTabGroup;
101
return
RibbonHelper
.FindContainer(this, Items.Count - 1, -1, null, HasTabs) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (3)
139
RibbonHelper
.ClearPseudoInheritedProperties(_partContentPresenter);
178
RibbonHelper
.FixMeasureInvalidationPaths(rc);
202
RibbonHelper
.TransferPseudoInheritedProperties(this, _partContentPresenter);
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
93
RibbonHelper
.TransferPseudoInheritedProperties(this, child);
182
RibbonHelper
.ClearPseudoInheritedProperties(element);
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (6)
777
new FrameworkPropertyMetadata(false,
RibbonHelper
.OnCanAddToQuickAccessToolBarDirectlyChanged,
RibbonHelper
.OnCoerceCanAddToQuickAccessToolBarDirectly));
800
new FrameworkPropertyMetadata(false, new PropertyChangedCallback(
RibbonHelper
.OnIsInQATChanged)));
860
new FrameworkPropertyMetadata(null,
RibbonHelper
.OnCoerceQuickAccessToolBarId));
915
RibbonHelper
.AddHandler(element, DismissPopupEvent, handler);
920
RibbonHelper
.RemoveHandler(element, DismissPopupEvent, handler);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
103
_retainFocusOnDismiss =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (24)
66
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
68
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
2183
var itemTemplate =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemTemplateProperty);
2184
var itemTemplateSelector =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemTemplateSelectorProperty);
2185
var itemStringFormat =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemStringFormatProperty);
2186
var itemContainerStyle =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleProperty);
2187
var itemContainerStyleSelector =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleSelectorProperty);
2188
var alternationCount =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.AlternationCountProperty);
2189
var itemBindingGroup =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemBindingGroupProperty);
2197
RibbonHelper
.IgnoreDPInheritedFromParentItemsControl(
2690
predictedFocus =
RibbonHelper
.PredictFocus(focusedElement, direction) as UIElement;
2696
RibbonHelper
.Focus(predictedFocus);
2711
predictedFocus =
RibbonHelper
.PredictFocus(focusedElement, direction) as UIElement;
2727
UIElement focusContainer =
RibbonHelper
.GetContainingUIElement(focusedElement);
2755
e.Handled =
RibbonHelper
.NavigatePageAndHighlightRibbonGalleryItem(
2784
RibbonHelper
.IsAncestorOf(filterPane, e.OriginalSource as DependencyObject))
2886
RibbonHelper
.OnCommandChanged(d, e);
2989
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
3004
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
3019
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
3034
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
3049
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
3064
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (7)
45
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
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)));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (26)
69
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
164
RibbonHelper
.SetContentAsToolTip(this, this.VisualChild, this.Header, (IsCollapsed && !IsDropDownOpen));
246
RibbonHelper
.DelayCoerceProperty(ribbonGroup, IsDropDownOpenProperty);
248
RibbonHelper
.SetContentAsToolTip(ribbonGroup, ribbonGroup.VisualChild, ribbonGroup.Header, (ribbonGroup.IsCollapsed && !ribbonGroup.IsDropDownOpen));
324
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
339
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
354
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
369
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
384
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
399
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
626
RibbonHelper
.HandleIsDropDownChanged(group,
634
group.RetainFocusOnEscape =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
638
RibbonHelper
.SetContentAsToolTip(group, group.VisualChild, group.Header, (group.IsCollapsed && !group.IsDropDownOpen));
679
RibbonHelper
.DelayCoerceProperty(this, IsDropDownOpenProperty);
690
RibbonHelper
.DelayCoerceProperty(this, IsDropDownOpenProperty);
1014
RibbonHelper
.SetContentAsToolTip(ribbonGroup, ribbonGroup.VisualChild, ribbonGroup.Header, (ribbonGroup.IsCollapsed && !ribbonGroup.IsDropDownOpen));
1273
RibbonHelper
.FixMeasureInvalidationPaths(_templateContentControl);
1310
return
RibbonHelper
.CoerceRibbonToolTip(d, value);
1408
RibbonHelper
.HandleLostMouseCapture(this,
1424
RibbonHelper
.HandleClickThrough(this, e, _collapsedGroupPopup.TryGetChild());
1433
if (
RibbonHelper
.IsMousePhysicallyOver(_collapsedDropDownButton))
1450
RibbonHelper
.HandleDismissPopup(e,
1462
RibbonHelper
.HandleDropDownKeyDown(this, e,
1505
RibbonHelper
.AsyncSetFocusAndCapture(this,
1682
placementTarget =
RibbonHelper
.GetContainingUIElement(e.OriginalSource as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (13)
173
RibbonHelper
.UpdatePopupAnimation((Popup)sender);
595
FrameworkElement nextElement =
RibbonHelper
.FindContainer(parent, itemIndex, 1, bringIntoViewCallback, null);
612
FrameworkElement nextElement =
RibbonHelper
.FindContainer(parent, startIndex + 1, 1, bringIntoViewCallback, IsMenuItemFocusable);
641
FrameworkElement previousElement =
RibbonHelper
.FindContainer(parent, startIndex - 1, -1, bringIntoViewCallback, IsMenuItemFocusable);
663
RibbonGalleryCategory lastCategory =
RibbonHelper
.FindContainer(gallery, gallery.Items.Count - 1, -1, null, IsContainerVisible) as RibbonGalleryCategory;
666
return
RibbonHelper
.NavigateToLastItem(lastCategory, /* BringIntoView callback */ null, IsContainerFocusable);
702
RibbonGalleryCategory firstCategory =
RibbonHelper
.FindContainer(gallery, 0, 1, null, IsContainerVisible) as RibbonGalleryCategory;
705
return
RibbonHelper
.NavigateToFirstItem(firstCategory, /* BringIntoView callback */ null, IsContainerFocusable);
1074
else if (!
RibbonHelper
.IsAncestorOf(targetCapture, Mouse.Captured as DependencyObject))
1079
else if (
RibbonHelper
.IsAncestorOf(targetCapture, e.OriginalSource as DependencyObject))
1336
RibbonHelper
.IsAncestorOf(element, Mouse.Captured as DependencyObject));
1384
RibbonHelper
.IsISupportStarLayout) as ISupportStarLayout;
2453
if (
RibbonHelper
.IsEndFocusableMenuItem(menuItem, e.Key == Key.Up /* isFirst */))
Microsoft\Windows\Controls\Ribbon\RibbonKeyTipAndContentSyncHelper.cs (3)
44
int accessKeyIndex =
RibbonHelper
.FindAccessKeyMarker(stringContent);
106
int accessIndex =
RibbonHelper
.FindAccessKeyMarker(stringContent);
148
if (
RibbonHelper
.FindAccessKeyMarker(stringContent) < 0)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (34)
61
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
63
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
143
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
158
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
173
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
188
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
203
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
218
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
726
RibbonHelper
.ClearPseudoInheritedProperties(_partToggleButton);
761
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
772
RibbonHelper
.HandleDropDownKeyDown(this, e,
813
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
819
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, -1, BringIndexIntoView);
829
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
833
RibbonHelper
.MoveFocus(FocusNavigationDirection.Down);
846
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
850
RibbonHelper
.MoveFocus(FocusNavigationDirection.Up);
862
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView);
866
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
1090
RibbonHelper
.HandleIsDropDownChanged(this,
1097
RetainFocusOnEscape =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
1166
RibbonHelper
.DelayCoerceProperty(this, IsDropDownOpenProperty);
1177
RibbonHelper
.DelayCoerceProperty(this, IsDropDownOpenProperty);
1200
RibbonHelper
.SetDropDownHeight(menuButton._itemsPresenter, (bool)e.NewValue, menuButton.DropDownHeight);
1214
RibbonHelper
.InvalidateScrollBarVisibility(menuButton._submenuScrollViewer);
1417
RibbonHelper
.HandleLostMouseCapture(this,
1434
RibbonHelper
.HandleDismissPopup(e,
1450
RibbonHelper
.HandleClickThrough(this, e, popupChild);
1459
if (
RibbonHelper
.IsMousePhysicallyOver(this))
1600
RibbonHelper
.AsyncSetFocusAndCapture(this,
1671
RibbonHelper
.SetKeyTipPlacementForButton(this, e, _partToggleButton == null ? null : _partToggleButton.Image);
1685
RibbonHelper
.OpenParentRibbonGroupDropDownSync(this, TemplateApplied);
1687
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (26)
60
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
62
CommandProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnCommandChanged));
63
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
87
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
102
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
117
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
132
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
147
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
162
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
328
RibbonHelper
.SetDropDownHeight(menuItem._itemsPresenter, (bool)e.NewValue, menuItem.DropDownHeight);
342
RibbonHelper
.InvalidateScrollBarVisibility(menuItem._submenuScrollViewer);
804
RibbonHelper
.HandleDropDownKeyDown(this, e,
867
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
888
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
892
RibbonHelper
.MoveFocus(FocusNavigationDirection.Down);
903
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
907
RibbonHelper
.MoveFocus(FocusNavigationDirection.Up);
917
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
921
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
928
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
934
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, -1, BringIndexIntoView);
1209
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
1680
RibbonHelper
.HandleDismissPopup(e,
1696
RibbonHelper
.HandleClickThrough(this, e, popupChild);
1831
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (11)
182
RibbonHelper
.HandleIsDropDownChanged(
190
qat.RetainFocusOnEscape =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
372
RibbonHelper
.HandleClickThrough(this, e, popupChild);
384
RibbonHelper
.HandleLostMouseCapture(
402
RibbonHelper
.HandleDismissPopup(
426
RibbonHelper
.HandleDropDownKeyDown(
463
RibbonHelper
.AsyncSetFocusAndCapture(
500
RibbonHelper
.ClearPseudoInheritedProperties(element);
511
RibbonHelper
.AddHandler(element, CloneEvent, handler);
516
RibbonHelper
.RemoveHandler(element, CloneEvent, handler);
659
RibbonHelper
.SetDefaultQatKeyTipPlacement(e);
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (13)
48
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
50
CommandProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnCommandChanged));
51
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
123
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
138
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
153
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
168
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
183
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
198
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
503
RibbonHelper
.EnableFocusVisual(this);
509
RibbonHelper
.DisableFocusVisual(this);
602
RibbonHelper
.SetKeyTipPlacementForButton(this, e, _image);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (3)
352
new FrameworkPropertyMetadata((ICommand)null,
RibbonHelper
.OnCommandChanged));
547
RibbonHelper
.SetKeyTipPlacementForSplitButtonDropDown(this,
554
RibbonHelper
.SetKeyTipPlacementForSplitButtonHeader(this,
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
408
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (10)
255
var itemTemplate =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty);
256
var itemTemplateSelector =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty);
257
var itemStringFormat =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty);
258
var itemContainerStyle =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty);
259
var itemContainerStyleSelector =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty);
260
var alternationCount =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty);
261
var itemBindingGroup =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);
269
RibbonHelper
.IgnoreDPInheritedFromParentItemsControl(
384
DependencyObject upObj =
RibbonHelper
.PredictFocus(focusedElement, FocusNavigationDirection.Up);
385
if (!
RibbonHelper
.IsAncestorOf(this, upObj))
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
157
get { return
RibbonHelper
.GetIsContentTooltip(VisualChild, Content); }
158
set {
RibbonHelper
.SetContentAsToolTip(this, VisualChild, Content, value); }
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (14)
48
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
50
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
176
RibbonHelper
.OnCommandChanged(d, e);
318
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
333
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
348
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
363
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
378
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
393
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
579
RibbonHelper
.EnableFocusVisual(this);
585
RibbonHelper
.DisableFocusVisual(this);
691
RibbonHelper
.SetKeyTipPlacementForTextBox(this, e, _contentHost);
705
RibbonHelper
.OpenParentRibbonGroupDropDownSync(this, TemplateApplied);
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (13)
49
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
51
CommandProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnCommandChanged));
52
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
130
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
145
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
160
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
175
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
190
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
205
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
510
RibbonHelper
.EnableFocusVisual(this);
516
RibbonHelper
.DisableFocusVisual(this);
621
RibbonHelper
.SetKeyTipPlacementForButton(this, e, _image);
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (2)
393
MatrixTransform deviceTransform = new MatrixTransform(
RibbonHelper
.GetTransformToDevice(referenceFE));
431
RibbonHelper
.FindAndHookPopup(this, ref _popup);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
178
RibbonHelper
.NavigateToItem(childItemsControl, matchedItemIndex , null);
286
RibbonHelper
.NavigateToItem(_attachedTo, matchedItemIndex , null);