Table of Contents

Interface IButtonHandler

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

Contains methods and properties which allow to control button control.

public interface IButtonHandler : IControlHandler, IDisposableObject, IDisposable

Properties

Click

Gets or sets action which is called when button is clicked.

DisabledImage

Sets image for the 'Disabled' state.

ExactFit

Gets or sets whether buttons are made of at least the standard button size, even if their contents is small enough to fit into a smaller size.

FocusedImage

Sets image for the 'Focused' state.

HasBorder

Gets or sets a value indicating whether the control has a border.

HoveredImage

Sets image for the 'Hovered' state.

IsCancel

Gets or sets a value that indicates whether a Button is a Cancel button. In a modal dialog, a user can activate the Cancel button by pressing the ESC key.

IsDefault

Gets or sets a value that indicates whether a Button is the default button. In a modal dialog, a user invokes the default button by pressing the ENTER key.

NormalImage

Sets image for the 'Normal' state.

PressedImage

Sets image for the 'Pressed' state.

TextAlign

Sets the position at which the text is displayed.

TextVisible

Gets or sets visibility of the text in the bitmap.

Methods

SetImageMargins(double, double)

Sets the margins between the image and the text of the button. Value is in device-independent units.

SetImagePosition(GenericDirection)

Sets the position at which the image is displayed.