Links

Button

Wisej.Web.Button
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.1.0.0)
Represents a button control.
C#
VB.NET
public class Button : ButtonBase, IButtonControl, ICommandSource
Public Class Button
Inherits ButtonBase
Implements IButtonControl, ICommandSource

Constructors

Button()

Initializes a new instance of the Button class.

Properties

AutoSizeMode

AutoSizeMode: Returns or sets the mode by which the Button automatically resizes itself.

BorderStyle

BorderStyle: Returns or sets the border style of the button control.

Command

ICommand: EXPERIMENTAL. Returns or sets the ICommand implementation to invoke.

DialogResult

DialogResult: Returns or sets a value that is returned to the parent form when the button is clicked.

Display

Display: Returns or sets the Display mode of the control to determine whether to display the icon, the text or both.

ImageSpacing

Nullable<Int32>: Returns or sets the distance in pixels between the image and the label inside the button.
MenuItemCollection: Returns the collection of MenuItem objects associated with the button.

Repeat

Boolean: Enables or disables the auto-repeat feature. When enabled, the button keeps firing click events at an increasing rate while the user keeps the button pressed.

Shortcut

Shortcut: Returns or sets a value indicating the shortcut key associated with the button.

Methods

PerformClick()

Generates a Click event for a button.

Events

CommandChanged

EventHandler Fired when the Command property value changes.

ItemClicked

MenuButtonItemClickedEventHandler Fired when the user clicks one of the drop down menu items.

Inherited By

Name
Description
Represents a split button control.

Implements

Name
Description
Bindable components implement this interface.
Allows a control to act like a button on a Form.
Defines an object that can invoke a Command.
IImage
Provides access to common image properties across the controls that implement this interface.
All wisej components implement this interface.
All wisej controls derived from the Control class must implement this interface.
Allows an object to serialize itself.