1 instantiation of KeyTipService
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
1711
_current = new
KeyTipService
();
123 references to KeyTipService
System.Windows.Controls.Ribbon (123)
Microsoft\Windows\Controls\ActivatingKeyTipEventArgs.cs (1)
32
RoutedEvent =
KeyTipService
.ActivatingKeyTipEvent;
Microsoft\Windows\Controls\KeyTipAdorner.cs (4)
95
_keyTipControl.Text =
KeyTipService
.GetKeyTip(keyTipElement).ToUpper(
KeyTipService
.GetCultureForElement(keyTipElement));
97
Style keyTipStyle =
KeyTipService
.GetKeyTipStyle(keyTipElement);
107
keyTipStyle =
KeyTipService
.GetKeyTipStyle(ribbon);
Microsoft\Windows\Controls\KeyTipService.cs (26)
54
DependencyProperty.RegisterAttached("KeyTip", typeof(string), typeof(
KeyTipService
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnKeyTipChanged)));
111
DependencyProperty.RegisterAttached("IsKeyTipScope", typeof(bool), typeof(
KeyTipService
), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsKeyTipScopeChanged)));
132
DependencyProperty.RegisterAttached("KeyTipStyle", typeof(Style), typeof(
KeyTipService
), new FrameworkPropertyMetadata(null));
139
DependencyProperty.RegisterAttachedReadOnly("KeyTipScope", typeof(DependencyObject), typeof(
KeyTipService
),
146
KeyTipService
current = Current;
215
KeyTipService
current = Current;
241
KeyTipService
current = Current;
250
KeyTipService
current = Current;
394
return ((
KeyTipService
.GetIsKeyTipScope(d)) || (TreeHelper.GetParent(d) == null));
401
return ((
KeyTipService
.GetIsKeyTipScope(d)) || (TreeHelper.GetParent(d) == null));
426
typeof(
KeyTipService
),
462
typeof(
KeyTipService
),
961
!
KeyTipService
.GetIsKeyTipScope(newScope) &&
967
KeyTipService
.GetIsKeyTipScope(exactMatchElement))
1290
DependencyProperty.RegisterAttached("CanClipKeyTip", typeof(bool), typeof(
KeyTipService
), new UIPropertyMetadata(true));
1339
DependencyProperty.RegisterAttached("KeyTipAdorner", typeof(KeyTipAdorner), typeof(
KeyTipService
), new UIPropertyMetadata(null));
1342
DependencyProperty.RegisterAttached("KeyTipAdornerHolder", typeof(UIElement), typeof(
KeyTipService
), new UIPropertyMetadata(null));
1345
DependencyProperty.RegisterAttached("ShowingKeyTip", typeof(bool), typeof(
KeyTipService
),
1368
KeyTipService
current = Current;
1504
KeyTipService
current = Current;
1528
KeyTipService
current = Current;
1541
public static readonly RoutedEvent ActivatingKeyTipEvent = EventManager.RegisterRoutedEvent("ActivatingKeyTip", RoutingStrategy.Bubble, typeof(ActivatingKeyTipEventHandler), typeof(
KeyTipService
));
1553
public static readonly RoutedEvent PreviewKeyTipAccessedEvent = EventManager.RegisterRoutedEvent("PreviewKeyTipAccessed", RoutingStrategy.Tunnel, typeof(KeyTipAccessedEventHandler), typeof(
KeyTipService
));
1565
public static readonly RoutedEvent KeyTipAccessedEvent = EventManager.RegisterRoutedEvent("KeyTipAccessed", RoutingStrategy.Bubble, typeof(KeyTipAccessedEventHandler), typeof(
KeyTipService
));
1706
internal static
KeyTipService
Current
1717
private static
KeyTipService
_current;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (8)
72
private
KeyTipService
.KeyTipFocusEventHandler _keyTipEnterFocusHandler = null;
73
private
KeyTipService
.KeyTipFocusEventHandler _keyTipExitRestoreFocusHandler = null;
133
_keyTipEnterFocusHandler = new
KeyTipService
.KeyTipFocusEventHandler(OnKeyTipEnterFocus);
134
KeyTipService
.Current.KeyTipEnterFocus += _keyTipEnterFocusHandler;
135
_keyTipExitRestoreFocusHandler = new
KeyTipService
.KeyTipFocusEventHandler(OnKeyTipExitRestoreFocus);
136
KeyTipService
.Current.KeyTipExitRestoreFocus += _keyTipExitRestoreFocusHandler;
2363
if (
KeyTipService
.Current.State ==
KeyTipService
.KeyTipState.None ||
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (5)
50
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
51
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
547
KeyTipService
.KeyTipProperty.AddOwner(typeof(RibbonButton));
554
get { return
KeyTipService
.GetKeyTip(this); }
555
set {
KeyTipService
.SetKeyTip(this, value); }
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (5)
50
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
51
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
563
KeyTipService
.KeyTipProperty.AddOwner(typeof(RibbonCheckBox));
570
get { return
KeyTipService
.GetKeyTip(this); }
571
set {
KeyTipService
.SetKeyTip(this, value); }
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (5)
47
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
48
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
742
KeyTipService
.KeyTipProperty.AddOwner(typeof(RibbonGalleryItem), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnKeyTipChanged), new CoerceValueCallback(CoerceKeyTip)));
749
get { return
KeyTipService
.GetKeyTip(this); }
750
set {
KeyTipService
.SetKeyTip(this, value); }
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (11)
79
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
80
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
110
KeyTipService
.SetCustomSiblingKeyTipElements(this, new RibbonGroupCustomKeyTipSiblings(this));
1570
if (!string.IsNullOrEmpty(
KeyTipService
.GetKeyTip(element)))
1577
!
KeyTipService
.GetIsKeyTipScope(controlGroup))
1583
!string.IsNullOrEmpty(
KeyTipService
.GetKeyTip(controlGroupElement)))
1614
KeyTipService
.KeyTipProperty.AddOwner(typeof(RibbonGroup));
1621
get { return
KeyTipService
.GetKeyTip(this); }
1622
set {
KeyTipService
.SetKeyTip(this, value); }
1756
KeyTipService
.SetIsKeyTipScope(popupChild, true);
1764
KeyTipService
.GetIsKeyTipScope(tab))
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1262
if (
KeyTipService
.Current.State !=
KeyTipService
.KeyTipState.Enabled && ((e.SystemKey == Key.LeftAlt) || (e.SystemKey == Key.RightAlt))
1302
KeyTipService
.DismissKeyTips();
2252
if (markupProp.DependencyProperty ==
KeyTipService
.KeyTipProperty ||
Microsoft\Windows\Controls\Ribbon\RibbonKeyTipAndContentSyncHelper.cs (4)
37
string keyTip =
KeyTipService
.GetKeyTip(element);
62
element.CoerceValue(
KeyTipService
.KeyTipProperty);
126
element.CoerceValue(
KeyTipService
.KeyTipProperty);
147
string keyTip =
KeyTipService
.GetKeyTip(element);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (7)
82
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
83
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
710
KeyTipService
.SetCanClipKeyTip(_submenuScrollViewer, false);
1638
KeyTipService
.KeyTipProperty.AddOwner(typeof(RibbonMenuButton));
1645
get { return
KeyTipService
.GetKeyTip(this); }
1646
set {
KeyTipService
.SetKeyTip(this, value); }
1678
KeyTipService
.SetIsKeyTipScope(popupChild, true);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (8)
69
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
70
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
660
KeyTipService
.SetCanClipKeyTip(_submenuScrollViewer, false);
1121
KeyTipService
.DismissKeyTips();
1748
KeyTipService
.KeyTipProperty.AddOwner(typeof(RibbonMenuItem),
1756
get { return
KeyTipService
.GetKeyTip(this); }
1757
set {
KeyTipService
.SetKeyTip(this, value); }
1818
KeyTipService
.SetIsKeyTipScope(popupChild, true);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (7)
117
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
118
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.PreviewKeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnPreviewKeyTipAccessedThunk));
305
KeyTipService
.SetKeyTipAutoGenerationElements(this, keyTipAutoGenerationElements);
310
KeyTipService
.SetKeyTipAutoGenerationElements(_overflowPanel, keyTipAutoGenerationElements);
586
PropertyHelper.IsDefaultValue(contentChild,
KeyTipService
.KeyTipProperty))
607
PropertyHelper.IsDefaultValue(contentChild,
KeyTipService
.KeyTipProperty))
667
KeyTipService
.SetIsKeyTipScope(popupChild, true);
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (5)
50
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
51
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
579
KeyTipService
.KeyTipProperty.AddOwner(typeof(RibbonRadioButton));
586
get { return
KeyTipService
.GetKeyTip(this); }
587
set {
KeyTipService
.SetKeyTip(this, value); }
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
406
KeyTipService
.SetIsKeyTipScope(popupChild, true);
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (7)
51
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
52
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
53
KeyTipService
.KeyTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(new PropertyChangedCallback(OnKeyTipChanged)));
817
tabHeader?.CoerceValue(
KeyTipService
.KeyTipProperty);
824
KeyTipService
.KeyTipProperty.AddOwner(typeof(RibbonTab));
831
get { return
KeyTipService
.GetKeyTip(this); }
832
set {
KeyTipService
.SetKeyTip(this, value); }
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (5)
44
KeyTipService
.KeyTipProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceKeyTip)));
45
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
46
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
402
CoerceValue(
KeyTipService
.KeyTipProperty);
708
if (
KeyTipService
.GetIsKeyTipScope(tab))
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (5)
49
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
50
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
668
KeyTipService
.KeyTipProperty.AddOwner(typeof(RibbonTextBox));
675
get { return
KeyTipService
.GetKeyTip(this); }
676
set {
KeyTipService
.SetKeyTip(this, value); }
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (5)
51
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.ActivatingKeyTipEvent, new ActivatingKeyTipEventHandler(OnActivatingKeyTipThunk));
52
EventManager.RegisterClassHandler(ownerType,
KeyTipService
.KeyTipAccessedEvent, new KeyTipAccessedEventHandler(OnKeyTipAccessedThunk));
598
KeyTipService
.KeyTipProperty.AddOwner(typeof(RibbonToggleButton));
605
get { return
KeyTipService
.GetKeyTip(this); }
606
set {
KeyTipService
.SetKeyTip(this, value); }