Class ToolbarItem
Represents an individual item that is displayed within a toolbar.
[ControlCategory("Hidden")]
public class ToolbarItem : NonVisualControl, IBaseObject, IDisposableObject, IInputElement, ISupportInitialize, IFocusable, IWin32Window, ITextProperty, IComponent, IDisposable, ICommandSource
- Inheritance
-
ToolbarItem
- Implements
- Extension Methods
Remarks
Please use AuiManager and AuiToolbar instead of Toolbar as it is deprecated and has limited functionality.
Constructors
- ToolbarItem()
Initializes a new instance of the ToolbarItem class.
- ToolbarItem(string)
Initializes a new instance of the ToolbarItem class with the specified text for the toolbar item.
- ToolbarItem(string, EventHandler?)
Initializes a new instance of the ToolbarItem class with a specified properties for the toolbar item.
Fields
- CommandParameterProperty
Defines a DependencyProperty field for the CommandParameter dependency property.
- CommandProperty
Defines a DependencyProperty field for the Command dependency property.
- CommandTargetProperty
Defines a DependencyProperty field for the CommandTarget dependency property.
Properties
- Checked
Gets or sets a value indicating whether a check mark appears next to the text of the toolbar item.
- Command
The command that will be executed when the class is "invoked." Classes that implement this interface should enable or disable based on the command's CanExecute return value. The property may be implemented as read-write if desired.
- CommandParameter
The parameter that will be passed to the command when executing the command. The property may be implemented as read-write if desired.
- CommandTarget
An element that an implementor may wish to target as the destination for the command. The property may be implemented as read-write if desired.
- ContentElements
Returns a collection of content elements which is used by the UIXML loader to find content items by index.
- ControlKind
Returns control identifier.
- DisabledImage
Gets or sets the disable image for the toolbar item.
- DropDownMenu
Gets or sets a menu used as this toolbar item drop-down.
- Image
Gets or sets the image for the toolbar item.
- IsCheckable
Gets or sets a boolean value indicating whether this toolbar item is checkable.
- LogicalChildrenCollection
Returns a collection of elements which can be treated as "logical children" of this element.
- Text
Gets or sets a value indicating the caption of the toolbar item.
Methods
- OnImageChanged(EventArgs)
Called when the value of the Image property changes.
- RaiseClick(EventArgs)
Raises the Click event and calls OnClick(EventArgs). See Click event description for more details.
- ToString()
Returns a string that represents the current object.
Events
- CheckedChanged
Occurs when the Checked property changes.
- ImageChanged
Occurs when the value of the Image property changes.