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