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