332 references to RibbonHelper
System.Windows.Controls.Ribbon (332)
Microsoft\Windows\Automation\Peers\RibbonApplicationMenuAutomationPeer.cs (2)
59
children.Add(
RibbonHelper
.CreatePeer(element));
69
children.Add(
RibbonHelper
.CreatePeer(element));
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
132
children.Insert(0,
RibbonHelper
.CreatePeer(filterHost));
Microsoft\Windows\Controls\KeyTipService.cs (14)
802
PresentationSource targetSource =
RibbonHelper
.GetPresentationSourceFromVisual(_currentGlobalScope as Visual);
919
CultureInfo computedCulture =
RibbonHelper
.GetCultureInfo(element);
939
RibbonHelper
.Beep();
999
RibbonHelper
.Beep();
1188
RibbonHelper
.IsAncestorOf(stackParentScope, parentScope))
1265
PresentationSource targetSource =
RibbonHelper
.GetPresentationSourceFromVisual(_currentGlobalScope as Visual);
1362
UIElement uie =
RibbonHelper
.GetContainingUIElement(element);
1387
UIElement adornedElement =
RibbonHelper
.GetContainingUIElement(activatingEventArgs.PlacementTarget ?? element);
1564
RibbonHelper
.AddHandler(element, ActivatingKeyTipEvent, handler);
1569
RibbonHelper
.RemoveHandler(element, ActivatingKeyTipEvent, handler);
1576
RibbonHelper
.AddHandler(element, PreviewKeyTipAccessedEvent, handler);
1581
RibbonHelper
.RemoveHandler(element, PreviewKeyTipAccessedEvent, handler);
1588
RibbonHelper
.AddHandler(element, KeyTipAccessedEvent, handler);
1593
RibbonHelper
.RemoveHandler(element, KeyTipAccessedEvent, handler);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (3)
62
RibbonHelper
.InitializeStarLayoutManager(this);
259
RibbonHelper
.InitializeStarLayoutManager(this);
620
TreeHelper.InvalidateMeasureForVisualAncestorPath(this,
RibbonHelper
.IsISupportStarLayout);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (3)
39
RibbonHelper
.InitializeStarLayoutManager(this);
428
TreeHelper.InvalidateMeasureForVisualAncestorPath(this,
RibbonHelper
.IsISupportStarLayout);
450
TreeHelper.InvalidateMeasureForVisualAncestorPath(this,
RibbonHelper
.IsISupportStarLayout);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (29)
102
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
1044
var itemTemplate =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty);
1045
var itemTemplateSelector =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty);
1046
var itemStringFormat =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty);
1047
var itemContainerStyle =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty);
1048
var itemContainerStyleSelector =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty);
1049
var alternationCount =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty);
1050
var itemBindingGroup =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);
1052
var headerTemplate =
RibbonHelper
.GetValueAndValueSource(headeredItemsControl, HeaderedItemsControl.HeaderTemplateProperty);
1053
var headerTemplateSelector =
RibbonHelper
.GetValueAndValueSource(headeredItemsControl, HeaderedItemsControl.HeaderTemplateSelectorProperty);
1054
var headerStringFormat =
RibbonHelper
.GetValueAndValueSource(headeredItemsControl, HeaderedItemsControl.HeaderStringFormatProperty);
1063
RibbonHelper
.IgnoreDPInheritedFromParentItemsControl(
1135
RibbonHelper
.AsyncSetFocusAndCapture(this,
1266
RibbonHelper
.HandleIsDropDownChanged(ribbon,
1273
ribbon._retainFocusOnEscape =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
1785
RibbonHelper
.HandleLostMouseCapture(this,
1801
RibbonHelper
.HandleClickThrough(this, e, _itemsPresenterPopup.TryGetChild());
1813
if (!
RibbonHelper
.IsAncestorOf(_itemsPresenterPopup.TryGetChild(), e.OriginalSource as DependencyObject) &&
1814
!
RibbonHelper
.IsAncestorOf(_tabHeaderItemsControl, e.OriginalSource as DependencyObject))
1829
RibbonHelper
.HandleDismissPopup(e,
1872
RibbonHelper
.HandleDropDownKeyDown(this, e,
2367
if (targetSource ==
RibbonHelper
.GetPresentationSourceFromVisual(this))
2379
if (targetSource ==
RibbonHelper
.GetPresentationSourceFromVisual(this))
2394
RibbonHelper
.RestoreFocusAndCapture(this, this);
2430
RibbonHelper
.AsyncSetFocusAndCapture(this,
2458
!
RibbonHelper
.ExistsInQAT(obj))
2657
RibbonHelper
.PopulatePropertyLists();
2660
e.CloneInstance = (UIElement)
RibbonHelper
.CreateClone(e.InstanceToBeCloned, allowTransformations);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
453
DependencyObject nextFocus =
RibbonHelper
.PredictFocus(element, FocusNavigationDirection.Down);
494
DependencyObject nextFocus =
RibbonHelper
.PredictFocus(element, FocusNavigationDirection.Up);
527
DependencyObject nextFocus =
RibbonHelper
.PredictFocus(element, FocusNavigationDirection.Left);
531
if (
RibbonHelper
.Focus(nextFocus))
559
if (
RibbonHelper
.Focus(nextFocus))
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (5)
106
RibbonHelper
.SetApplicationMenuLevel(this.Level == RibbonApplicationMenuItemLevel.Top, element);
128
RibbonHelper
.UnhookPopupForTopLevelMenuItem(this);
139
RibbonHelper
.HookPopupForTopLevelMenuItem(this, ParentItemsControl);
177
return
RibbonHelper
.CoerceIsSubmenuOpenForTopLevelItem(menuItem, menuItem.ParentItemsControl, (bool)baseValue);
229
RibbonHelper
.OnApplicationMenuItemUpDownKeyDown(e, this);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (5)
104
RibbonHelper
.SetApplicationMenuLevel(this.Level == RibbonApplicationMenuItemLevel.Top, element);
126
RibbonHelper
.UnhookPopupForTopLevelMenuItem(this);
137
RibbonHelper
.HookPopupForTopLevelMenuItem(this, ParentItemsControl);
175
return
RibbonHelper
.CoerceIsSubmenuOpenForTopLevelItem(menuItem, menuItem.ParentItemsControl, (bool)baseValue);
242
RibbonHelper
.OnApplicationMenuItemUpDownKeyDown(e, this);
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (13)
46
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
48
CommandProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnCommandChanged));
49
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
121
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
136
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
151
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
166
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
181
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
196
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
468
RibbonHelper
.EnableFocusVisual(this);
474
RibbonHelper
.DisableFocusVisual(this);
576
RibbonHelper
.SetKeyTipPlacementForButton(this, e, _image);
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (13)
46
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
48
CommandProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnCommandChanged));
49
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
121
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
136
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
151
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
166
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
181
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
196
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonCheckBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
485
RibbonHelper
.EnableFocusVisual(this);
491
RibbonHelper
.DisableFocusVisual(this);
584
RibbonHelper
.SetKeyTipPlacementForTextBox(this, e, _checkBorder);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (16)
172
RetainFocusOnEscape =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
210
RibbonHelper
.EnableFocusVisual(this);
214
RibbonHelper
.DisableFocusVisual(this);
964
RibbonHelper
.HandleDropDownKeyDown(this,
1053
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView);
1057
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
1074
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView);
1079
handled =
RibbonHelper
.NavigateAndHighlightGalleryItem(focusedGalleryItem, FocusNavigationDirection.Up);
1103
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
1108
handled =
RibbonHelper
.NavigateAndHighlightGalleryItem(focusedGalleryItem, FocusNavigationDirection.Down);
1126
RibbonHelper
.NavigateAndHighlightGalleryItem(focusedGalleryItem, FocusNavigationDirection.Right);
1138
RibbonHelper
.NavigateAndHighlightGalleryItem(focusedGalleryItem, FocusNavigationDirection.Left);
1147
RibbonHelper
.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Up);
1155
RibbonHelper
.NavigatePageAndHighlightRibbonGalleryItem(_firstGallery, focusedGalleryItem, FocusNavigationDirection.Down);
1562
RibbonHelper
.SetKeyTipPlacementForTextBox(this, e, EditableTextBoxSite);
1574
RibbonHelper
.OpenParentRibbonGroupDropDownSync(this, TemplateApplied);
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (2)
124
RibbonHelper
.ClearPseudoInheritedProperties(_templateRoot);
177
RibbonHelper
.TransferPseudoInheritedProperties(this, _templateRoot);
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
634
RibbonHelper
.FindAndHookPopup(this, ref _popup);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
204
get { return
RibbonHelper
.GetIsContentTooltip(VisualChild, Header); }
205
set {
RibbonHelper
.SetContentAsToolTip(this, VisualChild, Header, value); }
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (2)
88
return
RibbonHelper
.FindContainer(this, 0, 1, null, HasTabs) as RibbonContextualTabGroup;
99
return
RibbonHelper
.FindContainer(this, Items.Count - 1, -1, null, HasTabs) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (3)
135
RibbonHelper
.ClearPseudoInheritedProperties(_partContentPresenter);
174
RibbonHelper
.FixMeasureInvalidationPaths(rc);
198
RibbonHelper
.TransferPseudoInheritedProperties(this, _partContentPresenter);
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
90
RibbonHelper
.TransferPseudoInheritedProperties(this, child);
179
RibbonHelper
.ClearPseudoInheritedProperties(element);
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (6)
770
new FrameworkPropertyMetadata(false,
RibbonHelper
.OnCanAddToQuickAccessToolBarDirectlyChanged,
RibbonHelper
.OnCoerceCanAddToQuickAccessToolBarDirectly));
793
new FrameworkPropertyMetadata(false, new PropertyChangedCallback(
RibbonHelper
.OnIsInQATChanged)));
853
new FrameworkPropertyMetadata(null,
RibbonHelper
.OnCoerceQuickAccessToolBarId));
908
RibbonHelper
.AddHandler(element, DismissPopupEvent, handler);
913
RibbonHelper
.RemoveHandler(element, DismissPopupEvent, handler);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
101
_retainFocusOnDismiss =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (24)
64
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
66
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
2185
var itemTemplate =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemTemplateProperty);
2186
var itemTemplateSelector =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemTemplateSelectorProperty);
2187
var itemStringFormat =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemStringFormatProperty);
2188
var itemContainerStyle =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleProperty);
2189
var itemContainerStyleSelector =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleSelectorProperty);
2190
var alternationCount =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.AlternationCountProperty);
2191
var itemBindingGroup =
RibbonHelper
.GetValueAndValueSource(category, ItemsControl.ItemBindingGroupProperty);
2199
RibbonHelper
.IgnoreDPInheritedFromParentItemsControl(
2692
predictedFocus =
RibbonHelper
.PredictFocus(focusedElement, direction) as UIElement;
2698
RibbonHelper
.Focus(predictedFocus);
2713
predictedFocus =
RibbonHelper
.PredictFocus(focusedElement, direction) as UIElement;
2729
UIElement focusContainer =
RibbonHelper
.GetContainingUIElement(focusedElement);
2757
e.Handled =
RibbonHelper
.NavigatePageAndHighlightRibbonGalleryItem(
2786
RibbonHelper
.IsAncestorOf(filterPane, e.OriginalSource as DependencyObject))
2888
RibbonHelper
.OnCommandChanged(d, e);
2991
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
3006
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
3021
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
3036
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
3051
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
3066
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonGallery), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (7)
43
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
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)));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (26)
66
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
161
RibbonHelper
.SetContentAsToolTip(this, this.VisualChild, this.Header, (IsCollapsed && !IsDropDownOpen));
243
RibbonHelper
.DelayCoerceProperty(ribbonGroup, IsDropDownOpenProperty);
245
RibbonHelper
.SetContentAsToolTip(ribbonGroup, ribbonGroup.VisualChild, ribbonGroup.Header, (ribbonGroup.IsCollapsed && !ribbonGroup.IsDropDownOpen));
321
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
336
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
351
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
366
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
381
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
396
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonGroup), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
623
RibbonHelper
.HandleIsDropDownChanged(group,
631
group.RetainFocusOnEscape =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
635
RibbonHelper
.SetContentAsToolTip(group, group.VisualChild, group.Header, (group.IsCollapsed && !group.IsDropDownOpen));
676
RibbonHelper
.DelayCoerceProperty(this, IsDropDownOpenProperty);
687
RibbonHelper
.DelayCoerceProperty(this, IsDropDownOpenProperty);
1011
RibbonHelper
.SetContentAsToolTip(ribbonGroup, ribbonGroup.VisualChild, ribbonGroup.Header, (ribbonGroup.IsCollapsed && !ribbonGroup.IsDropDownOpen));
1270
RibbonHelper
.FixMeasureInvalidationPaths(_templateContentControl);
1307
return
RibbonHelper
.CoerceRibbonToolTip(d, value);
1405
RibbonHelper
.HandleLostMouseCapture(this,
1421
RibbonHelper
.HandleClickThrough(this, e, _collapsedGroupPopup.TryGetChild());
1430
if (
RibbonHelper
.IsMousePhysicallyOver(_collapsedDropDownButton))
1447
RibbonHelper
.HandleDismissPopup(e,
1459
RibbonHelper
.HandleDropDownKeyDown(this, e,
1502
RibbonHelper
.AsyncSetFocusAndCapture(this,
1679
placementTarget =
RibbonHelper
.GetContainingUIElement(e.OriginalSource as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (13)
172
RibbonHelper
.UpdatePopupAnimation((Popup)sender);
594
FrameworkElement nextElement =
RibbonHelper
.FindContainer(parent, itemIndex, 1, bringIntoViewCallback, null);
611
FrameworkElement nextElement =
RibbonHelper
.FindContainer(parent, startIndex + 1, 1, bringIntoViewCallback, IsMenuItemFocusable);
640
FrameworkElement previousElement =
RibbonHelper
.FindContainer(parent, startIndex - 1, -1, bringIntoViewCallback, IsMenuItemFocusable);
662
RibbonGalleryCategory lastCategory =
RibbonHelper
.FindContainer(gallery, gallery.Items.Count - 1, -1, null, IsContainerVisible) as RibbonGalleryCategory;
665
return
RibbonHelper
.NavigateToLastItem(lastCategory, /* BringIntoView callback */ null, IsContainerFocusable);
701
RibbonGalleryCategory firstCategory =
RibbonHelper
.FindContainer(gallery, 0, 1, null, IsContainerVisible) as RibbonGalleryCategory;
704
return
RibbonHelper
.NavigateToFirstItem(firstCategory, /* BringIntoView callback */ null, IsContainerFocusable);
1073
else if (!
RibbonHelper
.IsAncestorOf(targetCapture, Mouse.Captured as DependencyObject))
1078
else if (
RibbonHelper
.IsAncestorOf(targetCapture, e.OriginalSource as DependencyObject))
1335
RibbonHelper
.IsAncestorOf(element, Mouse.Captured as DependencyObject));
1383
RibbonHelper
.IsISupportStarLayout) as ISupportStarLayout;
2458
if (
RibbonHelper
.IsEndFocusableMenuItem(menuItem, e.Key == Key.Up /* isFirst */))
Microsoft\Windows\Controls\Ribbon\RibbonKeyTipAndContentSyncHelper.cs (3)
43
int accessKeyIndex =
RibbonHelper
.FindAccessKeyMarker(stringContent);
105
int accessIndex =
RibbonHelper
.FindAccessKeyMarker(stringContent);
147
if (
RibbonHelper
.FindAccessKeyMarker(stringContent) < 0)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (34)
58
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
60
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
140
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
155
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
170
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
185
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
200
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
215
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
723
RibbonHelper
.ClearPseudoInheritedProperties(_partToggleButton);
758
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
769
RibbonHelper
.HandleDropDownKeyDown(this, e,
810
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
816
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, -1, BringIndexIntoView);
826
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
830
RibbonHelper
.MoveFocus(FocusNavigationDirection.Down);
843
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
847
RibbonHelper
.MoveFocus(FocusNavigationDirection.Up);
859
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView);
863
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
1087
RibbonHelper
.HandleIsDropDownChanged(this,
1094
RetainFocusOnEscape =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
1163
RibbonHelper
.DelayCoerceProperty(this, IsDropDownOpenProperty);
1174
RibbonHelper
.DelayCoerceProperty(this, IsDropDownOpenProperty);
1197
RibbonHelper
.SetDropDownHeight(menuButton._itemsPresenter, (bool)e.NewValue, menuButton.DropDownHeight);
1211
RibbonHelper
.InvalidateScrollBarVisibility(menuButton._submenuScrollViewer);
1414
RibbonHelper
.HandleLostMouseCapture(this,
1431
RibbonHelper
.HandleDismissPopup(e,
1447
RibbonHelper
.HandleClickThrough(this, e, popupChild);
1456
if (
RibbonHelper
.IsMousePhysicallyOver(this))
1597
RibbonHelper
.AsyncSetFocusAndCapture(this,
1668
RibbonHelper
.SetKeyTipPlacementForButton(this, e, _partToggleButton == null ? null : _partToggleButton.Image);
1682
RibbonHelper
.OpenParentRibbonGroupDropDownSync(this, TemplateApplied);
1684
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (26)
57
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
59
CommandProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnCommandChanged));
60
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
84
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
99
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
114
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
129
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
144
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
159
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
325
RibbonHelper
.SetDropDownHeight(menuItem._itemsPresenter, (bool)e.NewValue, menuItem.DropDownHeight);
339
RibbonHelper
.InvalidateScrollBarVisibility(menuItem._submenuScrollViewer);
801
RibbonHelper
.HandleDropDownKeyDown(this, e,
864
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
885
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
889
RibbonHelper
.MoveFocus(FocusNavigationDirection.Down);
900
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
904
RibbonHelper
.MoveFocus(FocusNavigationDirection.Up);
914
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
918
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, focusedIndex, BringIndexIntoView);
925
handled =
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
931
handled =
RibbonHelper
.NavigateToPreviousMenuItemOrGallery(this, -1, BringIndexIntoView);
1206
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
1677
RibbonHelper
.HandleDismissPopup(e,
1693
RibbonHelper
.HandleClickThrough(this, e, popupChild);
1828
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (11)
177
RibbonHelper
.HandleIsDropDownChanged(
185
qat.RetainFocusOnEscape =
RibbonHelper
.IsKeyboardMostRecentInputDevice();
367
RibbonHelper
.HandleClickThrough(this, e, popupChild);
379
RibbonHelper
.HandleLostMouseCapture(
397
RibbonHelper
.HandleDismissPopup(
421
RibbonHelper
.HandleDropDownKeyDown(
458
RibbonHelper
.AsyncSetFocusAndCapture(
495
RibbonHelper
.ClearPseudoInheritedProperties(element);
506
RibbonHelper
.AddHandler(element, CloneEvent, handler);
511
RibbonHelper
.RemoveHandler(element, CloneEvent, handler);
654
RibbonHelper
.SetDefaultQatKeyTipPlacement(e);
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (13)
46
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
48
CommandProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnCommandChanged));
49
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
121
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
136
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
151
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
166
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
181
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
196
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonRadioButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
501
RibbonHelper
.EnableFocusVisual(this);
507
RibbonHelper
.DisableFocusVisual(this);
600
RibbonHelper
.SetKeyTipPlacementForButton(this, e, _image);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (3)
350
new FrameworkPropertyMetadata((ICommand)null,
RibbonHelper
.OnCommandChanged));
545
RibbonHelper
.SetKeyTipPlacementForSplitButtonDropDown(this,
552
RibbonHelper
.SetKeyTipPlacementForSplitButtonHeader(this,
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
407
RibbonHelper
.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (10)
253
var itemTemplate =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty);
254
var itemTemplateSelector =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty);
255
var itemStringFormat =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty);
256
var itemContainerStyle =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty);
257
var itemContainerStyleSelector =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty);
258
var alternationCount =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty);
259
var itemBindingGroup =
RibbonHelper
.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);
267
RibbonHelper
.IgnoreDPInheritedFromParentItemsControl(
382
DependencyObject upObj =
RibbonHelper
.PredictFocus(focusedElement, FocusNavigationDirection.Up);
383
if (!
RibbonHelper
.IsAncestorOf(this, upObj))
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
155
get { return
RibbonHelper
.GetIsContentTooltip(VisualChild, Content); }
156
set {
RibbonHelper
.SetContentAsToolTip(this, VisualChild, Content, value); }
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (14)
46
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
48
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
174
RibbonHelper
.OnCommandChanged(d, e);
316
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
331
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
346
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
361
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
376
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
391
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonTextBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
577
RibbonHelper
.EnableFocusVisual(this);
583
RibbonHelper
.DisableFocusVisual(this);
689
RibbonHelper
.SetKeyTipPlacementForTextBox(this, e, _contentHost);
703
RibbonHelper
.OpenParentRibbonGroupDropDownSync(this, TemplateApplied);
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (13)
47
ToolTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(
RibbonHelper
.CoerceRibbonToolTip)));
49
CommandProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnCommandChanged));
50
ContextMenuProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(
RibbonHelper
.OnContextMenuChanged,
RibbonHelper
.OnCoerceContextMenu));
128
RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
143
RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
158
RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
173
RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
188
RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
203
RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonToggleButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(
RibbonHelper
.OnRibbonToolTipPropertyChanged)));
508
RibbonHelper
.EnableFocusVisual(this);
514
RibbonHelper
.DisableFocusVisual(this);
619
RibbonHelper
.SetKeyTipPlacementForButton(this, e, _image);
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (2)
390
MatrixTransform deviceTransform = new MatrixTransform(
RibbonHelper
.GetTransformToDevice(referenceFE));
428
RibbonHelper
.FindAndHookPopup(this, ref _popup);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
175
RibbonHelper
.NavigateToItem(childItemsControl, matchedItemIndex , null);
283
RibbonHelper
.NavigateToItem(_attachedTo, matchedItemIndex , null);