BinaryKeyTip
A class that helps in displaying KeyTips on all controls hosted in BinaryRibbonWindow control.
public class BinaryKeyTip : Control
Inherits from / implements: Control
Remarks
BinaryRibbon supports the concept of KeyTips whereby any control in the Ribbon Window can be associated with a key code to provide keyboard access to the control.
Upon invoking the specified keyboard key code as is specified in the KeyTip of the control, the control is expected to perform some command invocation, like a button's click event handling and the like.
Any control that is hosted in the BinaryRibbonWindow can have a KeyTip specified on them by using the AccessKey attached property.
When the user invokes the specified KeyTip, if the control wants to execute some logic, then it needs to implement this interface IBinaryRibbonKeyTipControl.
By implementing the prescribed method PerformKeyTipExecute, BinaryRibbon control will ensure that the implemented method is run at the time when the user invokes the specified AccessKey/Keytip.
Members at a glance
ChangeColorForAccessTips | A helper method for changing the color for access tips on a given framework element. |
GetAccessKey | Gets the access key / keytip / key code string set for a given control's instance. |
GetDeferOrDisable | Gets as to whether to defer or disable keytip display on a given control. |
GetTipBackground | Gets the Keytip background brush. |
GetTipForeground | Gets the Keytip foreground brush. |
GetXOffset | Gets the X offset of the bounds where the KeyTip will be displayed. |
GetYOffset | Gets the Y offset of the bounds where the KeyTip will be displayed. |
SetAccessKey | Sets the access key / keytip / key code string for a given control's instance. |
SetDeferOrDisable | Sets as to whether to defer or disable keytip display on a given control. |
SetTipBackground | Sets the keytip background brush. |
SetTipForeground | Sets the Keytip foreground brush. |
SetXOffset | Sets the X offset for displaying the KeyTip. |
SetYOffset | Sets the Y offset for displaying the KeyTip. |
AccessKeyProperty | Attached property for the AccessKey property. |
DeferOrDisableProperty | DeferOrDisableProperty attached property. |
TipBackgroundProperty | Attached property for KeyTip background brush. |
TipForegroundProperty | Attached property for KeyTip foreground brush. |
XOffsetProperty | XOffset attached property. |
YOffsetProperty | YOffset attached property. |
Methods
ChangeColorForAccessTips
A helper method for changing the color for access tips on a given framework element.
- fe
- The Framework element on which the keytip is set.
- desiredBrush
- The desired brush.
- changeTargetProperty
- The change target property as is listed in
BrushChangeTargetProperty.
GetAccessKey
Gets the access key / keytip / key code string set for a given control's instance.
GetDeferOrDisable
Gets as to whether to defer or disable keytip display on a given control.
GetTipBackground
Gets the Keytip background brush.
GetTipForeground
Gets the Keytip foreground brush.
GetXOffset
Gets the X offset of the bounds where the KeyTip will be displayed.
GetYOffset
Gets the Y offset of the bounds where the KeyTip will be displayed.
SetAccessKey
Sets the access key / keytip / key code string for a given control's instance.
SetDeferOrDisable
Sets as to whether to defer or disable keytip display on a given control.
SetTipBackground
Sets the keytip background brush.
SetTipForeground
Sets the Keytip foreground brush.
SetXOffset
Sets the X offset for displaying the KeyTip.
SetYOffset
Sets the Y offset for displaying the KeyTip.
Fields
AccessKeyProperty
Attached property for the AccessKey property.
DeferOrDisableProperty
DeferOrDisableProperty attached property.
TipBackgroundProperty
Attached property for KeyTip background brush.
TipForegroundProperty
Attached property for KeyTip foreground brush.
XOffsetProperty
XOffset attached property.
YOffsetProperty
YOffset attached property.