Skip to main content
Version: 3.5

ToolBarButton

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents an item in the ToolBar.

public class ToolBarButton : BindableComponent, ICommandSource

Change the type of item to display using the Style property.

Constructors​

Instance memberToolBarButton()​

Initializes a new instance of the ToolBarButton class.

Instance memberToolBarButton(text)​

Initializes a new instance of the ToolBarButton class and displays the assigned text on the button.

NameTypeDescription
textStringThe text to display on the new ToolBarButton.

Properties​

Instance memberAllowHtml​

Boolean: Returns or sets a value indicating that the control can display HTML in the Text property. (Default: False)

Instance memberAppearanceKey​

String: Sets the appearance key for the theme engine. (Default: null)

Instance memberAutoShowLoader​

Boolean: Returns or sets whether the application blocks the browser with a modal mask when this button is clicked and until the server is done processing the execution request. (Default: False)

AutoShowLoader blocks the entire browser as soon as the button is clicked since it's implemented on the client side, while ShowLoader blocks the specific widget when returning from the request.

Instance memberCommand​

ICommand: Returns or sets the ICommand implementation to invoke. (Default: null)

ContextMenu: Returns or sets the menu to be displayed in the drop-down toolbar button. (Default: null)

Instance memberEnabled​

Boolean: Returns or sets whether the button is enabled. (Default: True)

Instance memberForeColor​

Color: Returns or sets the text color of the toolbar button.

Instance memberImage​

Image: Returns or sets the image that is displayed in a ToolBarButton.

Instance memberImageIndex​

Int32: Returns or sets the index value of the image assigned to the ToolBarButton. (Default: -1)

Throws:

Instance memberImageKey​

String: Returns or sets the name of the image assigned to the button. (Default: "")

Instance memberImageSource​

String: Returns or sets the theme name or URL for the image to display in the ToolBarButton.

Instance memberMargin​

Padding: Returns or sets the space between toolbar buttons.

Instance memberName​

String: Returns or sets the name of the ToolBarButton.

Instance memberPadding​

Padding: Returns or sets padding within the toolbar button.

Instance memberParent​

ToolBar: Returns the toolbar control that the toolbar button is assigned to.

Instance memberPushed​

Boolean: Returns or sets whether a toggle-style toolbar button is currently in the pushed state. (Default: False)

Instance memberSizeMode​

ToolBarButtonSizeMode: Returns or sets how the toolbar button is resized. (Default: Auto)

Instance memberStyle​

ToolBarButtonStyle: Returns or sets the style of the toolbar button. (Default: PushButton)

Instance memberTag​

Object: Returns or sets the object that contains data about the toolbar button. (Default: null)

Instance memberText​

String: Returns or sets the text displayed on the toolbar button. (Default: "")

When AllowHtml is set to true, the text can contain HTML content. If the text contains new lines (CRLF) but doesn't contain HTML elements (at least one "<") all CRLF are automatically substituted with "<br/>".

Instance memberToolTipText​

String: Returns or sets the text that appears as a ToolTip for the button. (Default: "")

Instance memberVisible​

Boolean: Returns or sets whether the toolbar button is visible or hidden. (Default: True)

Methods​

Instance memberPerformClick()​

Generates the Click and ButtonClick events.

Instance memberUpdate()​

Updates the component on the client. Overridden to repaint the toolbar in design mode.

Events​

Instance memberClick​

EventHandler Fired when the control is clicked.

Instance memberCommandChanged​

EventHandler Fired when the Command property value changes.

Instance memberPushedChanged​

EventHandler Fired when the Pushed property value changes.

Implements​

NameDescription
IBindableComponentBindable components implement this interface.
ICommandSourceDefines an object that can invoke a Command.
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.