Skip to main content
Version: 4.1

ButtonBase

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Implements the basic functionality common to button controls.

public class ButtonBase : Control, IImage, ICommandSource

Constructors

Instance member ButtonBase()

Initializes a new instance of the ButtonBase class.

Properties

Instance member AllowHtml

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

Newlines (CRLF) are converted to <BR/> when AllowHtml is false, or when AllowHtml is true and the text doesn't contain any HTML.

Instance member AllowMarkdown

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

Instance member AutoEllipsis

Boolean: Returns or sets whether the ellipsis character (...) appears at the right edge of the button, denoting that the text extends beyond the size of the button. (Default: False)

Instance member AutoShowLoader

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 member AutoSize

Boolean: Returns or sets a value that indicates whether the control resizes based on its contents. (Default: False)

Instance member CharacterCasing

CharacterCasing: Returns or sets the case of the text to display to the user. (Default: Normal)

Instance member Command

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

Protected member DefaultSize

Size:

Instance member Image

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

Instance member ImageAlign

ContentAlignment: Returns or sets the alignment of the image in the button control. (Default: MiddleCenter)

Instance member ImageIndex

Int32: Returns or sets the image list index value of the image in the ImageList displayed in the button control. (Default: -1)

Throws:

Instance member ImageKey

String: Returns or sets the key accessor for the image in the ImageList displayed in the button control. (Default: "")

Instance member ImageList

ImageList: Returns or sets the ImageList that contains the Image displayed in a button control. (Default: null)

Instance member ImageSource

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

Instance member IsDefault

Boolean: Returns or sets whether the button control is the default button.

Instance member Text

String: Returns or sets the text associated with this control. (Default: "")

Newlines (CRLF) are converted to <BR/> when AllowHtml is false, or when AllowHtml is true and the text doesn't contain any HTML.

Instance member TextAlign

ContentAlignment: Returns or sets the alignment of the text in the button control. (Default: MiddleCenter)

Instance member TextImageRelation

TextImageRelation: Returns or sets the position of text and image relative to each other. (Default: ImageBeforeText)

Instance member UseMnemonic

Boolean: Returns or sets whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control. (Default: True)

Methods

Protected member OnClick(e)

Fires the Click event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnCommandChanged(e)

Fires the CommandChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnTextChanged(e)

ParameterTypeDescription
eEventArgs

Protected member OnWebEvent(e)

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Instance member PerformClick()

Generates a Click event for a button.

Events

Instance member CommandChanged

EventHandler Fired when the Command property value changes.

Inherited By

NameDescription
ButtonRepresents a button control.
CheckBoxRepresents a check box control.
RadioButtonEnables the user to select a single option from a group of choices when paired with other RadioButton controls.
SplitButtonRepresents a split button control.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
ICommandSourceDefines an object that can invoke a Command.
IDropTargetControls that support drag & drop operations implement this interface.
IImageProvides access to common image properties across the controls that implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.