BaseButton Class

Serves as a base for button controls.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public class BaseButton :
    BaseStyleControl,
    IButtonControl,
    ISupportCommandBinding,
    ISupportToolTipsForm
Public Class BaseButton
    Inherits BaseStyleControl
    Implements IButtonControl,
               ISupportCommandBinding,
               ISupportToolTipsForm

Remarks

The BaseButton class implements the basic functionality of a regular button. It is derived from the BaseStyleControl class, so it enables you to control the button's appearance using the BaseControl.LookAndFeel, BaseButton.BorderStyle, BaseStyleControl.Appearance and BaseControl.StyleController properties. You can therefore use a common means to specify styles and look and feel for button controls derived from the BaseButton class, and other DevExpress controls.

The BaseButton class implements an IButtonControl interface. Members of this interface allow you to use the button as a dialog button (BaseButton.DialogResult) or as the default button (BaseButton.NotifyDefault).

Do not create instances of the BaseButton class in applications. Instead, use the derived SimpleButton control. The descendant introduces additional functionality, allowing you to display images within buttons.

See Also