ContextButtonBase Members
Represents a base class for context buttons.Constructors
Name | Description |
---|---|
ContextButtonBase() | Initializes a new instance of the ContextButtonBase class with the default settings. |
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. |
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. |
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.
|
CommandParameter |
Gets or sets the parameter that is passed to the command specified by the Command property.
|
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. |
Height | Gets or sets the button height. |
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. |
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 a glyph for this ContextItem. Inherited from ContextItem. |
ImageOptionsCollection | Provides access to image-related settings for each ContextItem visual state. Inherited from ContextItem. |
MaxHeight | Gets or sets the maximum height of the current button. |
MaxWidth | Gets or sets the maximum width of the current button. |
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. |
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. |
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. |
BindCommand(Object, Func<Object>) | Binds the specific parameterized command to this 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. |
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. |
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. |
CommandChanged | Occurs after the value of the Command property has changed. |
CommandParameterChanged | Occurs after the value of the CommandParameter property has changed. |
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. |
See Also