Table of Contents

Class ButtonBase

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Implements the basic functionality common to button controls.

public abstract class ButtonBase : Control, IBaseObjectWithId, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo, ICommandSource
Inheritance
ButtonBase
Implements
Derived

Constructors

ButtonBase()

Initializes a new instance of the ButtonBase class.

ButtonBase(Control)

Initializes a new instance of the ButtonBase class.

Properties

ClickAction

Gets or sets Action which will be executed when this control is clicked by the user.

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(object?) return value.

CommandParameter

Gets the parameter that will be passed to the command when executing it.

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.

Text

Gets or sets the text displayed on this button.

Methods

DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

OnClick(EventArgs)

Called when the control is clicked.