Skip to main content
Tab

ASPxButton.AllowFocus Property

Gets or sets a value specifying whether the button can receive focus.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public bool AllowFocus { get; set; }

Property Value

Type Default Description
Boolean true

true, if the button can receive focus; otherwise, false.

Remarks

Use the ASPxButton.FocusRectBorder property to get access to the focus rectangle’s settings which define the width, style, and color.

Example

Refer to the following demo for a full example: Button - Appearance Customization.

<dx:ASPxButton ID="btnBlueBall" runat="server" AutoPostBack="False" AllowFocus="False" RenderMode="Link">
    <!-- ... -->
</dx:ASPxButton>
See Also