ContextButton Members
A regular context button that can be clicked.Constructors
Name | Description |
---|---|
ContextButton() | Initializes a new instance of the ContextButton class. |
Properties
Name | Description |
---|---|
Alignment | Gets or sets the current item’s alignment relative to the owner control. This property is obsolete, use ContextItem.AlignmentOptions instead. Inherited from ContextItem. |
AlignmentOptions | Provides access to options that specify the panel in which the item is displayed, and its position in the panel. Inherited from ContextItem. |
AllowGlyphSkinning | Gets or sets whether the current item’s glyph is painted using the foreground color. Inherited from ContextItem. |
AllowHtmlText | Gets or sets whether the current button’s caption is formatted using HTML tags. Inherited from ContextButtonBase. |
AnchorAlignment | Gets or sets the alignment of the current item relative to the anchor element. Inherited from ContextItem. |
AnchorElement | Gets or sets an item (anchor element) relative to which the current item is aligned. Inherited from ContextItem. |
AnchorElementId | Gets or sets the globally unique identifier of the item (anchor element), relative to which the current item is aligned. Inherited from ContextItem. |
AnchorIndent | Gets or sets the indent between the current item and the anchor element. Inherited from ContextItem. |
AnchorOffset | Gets or sets the translation of the current item from the anchor element. Inherited from ContextItem. |
AnimationType | Gets or sets the type of the animation used to show and hide the current item. Inherited from ContextItem. |
AppearanceDisabled | Provides access to appearance settings applied to this ContextItem in the Disabled state. Inherited from ContextItem. |
AppearanceHover | Provides access to the settings used to paint the current item in the hovered state. Inherited from ContextItem. |
AppearanceNormal | Provides access to the appearance settings used to paint the current item in the normal (not hovered) state. Inherited from ContextItem. |
Caption | Gets or sets the current button’s caption. Inherited from ContextButtonBase. |
Collection | Gets the collection to which the current item belongs. Inherited from ContextItem. |
Command |
Gets or sets the ICommand whose Execute(Object) method will be called when the Click event is invoked.
Inherited from ContextButtonBase. |
CommandParameter |
Gets or sets the parameter that is passed to the command specified by the Command property.
Inherited from ContextButtonBase. |
Enabled | Gets or sets whether the current item can respond to end-user interaction. Inherited from ContextItem. |
Glyph | Gets or sets the glyph displayed by the current item in the normal (not hovered) state. Inherited from ContextItem. |
HasGlyph | Gets whether or not this ContextItem has a glyph assigned. Inherited from ContextItem. |
HasHoverGlyph | Gets whether or not this ContextItem has a hovered state glyph assigned. Inherited from ContextItem. |
HasPressedGlyph | Gets whether or not this ContextButton has a pressed state glyph assigned. |
Height | Gets or sets the button height. Inherited from ContextButtonBase. |
HoverGlyph | Gets or sets the glyph displayed by the current item in the hovered state. Inherited from ContextItem. |
HyperLinkColor | Gets or sets the color of the hyperlink text in the current button’s caption. Inherited from ContextButtonBase. |
Id | Gets or sets the current item’s unique identifier. Inherited from ContextItem. |
ImageOptions | Provides access to all properties that allow you to assign and customize glyphs for this ContextButton. |
ImageOptionsCollection | Provides access to image-related settings for each ContextButton visual state - Normal, Hovered, Pressed. |
MaxHeight | Gets or sets the maximum height of the current button. Inherited from ContextButtonBase. |
MaxWidth | Gets or sets the maximum width of the current button. Inherited from ContextButtonBase. |
Name | Gets or sets the current item’s name. Inherited from ContextItem. |
OriginItem | This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from ContextItem. |
Padding | Gets or sets the amount of space around the current button. Inherited from ContextButtonBase. |
PressedGlyph | Gets or sets the glyph displayed by the current item in the normal (not hovered) state. |
ShowToolTips | Gets or sets whether a tooltip is shown when the mouse pointer hovers over the button. Inherited from ContextItem. |
Size | Gets or sets the current item’s size. Inherited from ContextItem. |
SuperTip | Gets or sets a super tooltip shown when the mouse pointer hovers over the button. Inherited from ContextItem. |
Tag | Gets or sets custom data associated with the current item. Inherited from ContextItem. |
ToolTip | Gets or sets the text in a regular tooltip shown when the mouse pointer hovers over the button. Inherited from ContextItem. |
ToolTipIconType | Gets or sets the icon in a regular tooltip shown when the mouse pointer hovers over the button. Inherited from ContextItem. |
ToolTipTitle | Gets or sets the title in a regular tooltip shown when the mouse pointer hovers over the button. Inherited from ContextItem. |
Visibility | Gets or sets the item visibility. Inherited from ContextItem. |
Width | Gets or sets the button width. Inherited from ContextButtonBase. |
Methods
Name | Description |
---|---|
AssignPropertiesInternal(ContextItem, Boolean) | This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from ContextItem. |
AssignPropertiesInternal(ContextItem) | This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from ContextItem. |
BeginUpdate() | Locks the ContextItem object by preventing visual updates until the EndUpdate method is called. Inherited from ContextItem. |
BindCommand(Expression<Action>, Object, Func<Object>) | Uses the command selector to find an appropriate parameterized command in the source and binds it to this ContextButtonBase. Inherited from ContextButtonBase. |
BindCommand(Object, Func<Object>) | Binds the specific parameterized command to this ContextButtonBase. Inherited from ContextButtonBase. |
BindCommand<T>(Expression<Action<T>>, Object, Func<T>) | Uses the command selector to find an appropriate parameterized command of the target type in the source and binds it to this ContextButtonBase. Inherited from ContextButtonBase. |
CancelUpdate() | Unlocks the ContextItem object after it has been locked by the BeginUpdate method, without causing an immediate visual update. Inherited from ContextItem. |
Clone() | Creates a new ContextItem object that is a copy of the current instance. Inherited from ContextItem. |
EndUpdate() | Unlocks the ContextItem object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from ContextItem. |
Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals(Object) | Determines whether the specified object is equal to the current object. Inherited from Object. |
GetActualGlyph(ISkinProvider) | Returns the Image object specifying the glyph actually assigned. Inherited from ContextItem. |
GetActualHoverGlyph(ISkinProvider) | Returns the Image object specifying the hovered state glyph actually assigned. Inherited from ContextItem. |
GetActualPressedGlyph(ISkinProvider) | Returns the Image object specifying the pressed state glyph actually assigned. |
GetHashCode() | Serves as the default hash function. Inherited from Object. |
GetType() | Gets the Type of the current instance. Inherited from Object. |
MemberwiseClone() protected | Creates a shallow copy of the current Object. Inherited from Object. |
RaiseContextItemClick(MouseEventArgs, ContextItemViewInfo) | Raises the ContextItem.Click event. Inherited from ContextItem. |
ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from Object. |
ResetSuperTip() | Removes the SuperToolTip object assigned to the current context item. Inherited from ContextItem. |
ToString() | Returns a string that represents the current object. Inherited from Object. |
Events
Name | Description |
---|---|
Click | Fires when the current item is clicked. Inherited from ContextItem. |
CommandCanExecuteChanged | Occurs when the CanExecute(Object) status of the Command has changed. Inherited from ContextButtonBase. |
CommandChanged | Occurs after the value of the Command property has changed. Inherited from ContextButtonBase. |
CommandParameterChanged | Occurs after the value of the CommandParameter property has changed. Inherited from ContextButtonBase. |
CustomToolTip | Allows you to specify a tooltip shown when the mouse pointer hovers over a context button. This event is only raised for RatingContextButton and TrackBarContextButton objects. Inherited from ContextItem. |
HyperlinkClick | Fires when a hyperlink in the button caption is clicked. Inherited from ContextButtonBase. |
See Also