Back to Devexpress

RepositoryItemSearchControl.ShowDefaultButtonsMode Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemsearchcontrol-19d65aed.md

latest3.2 KB
Original Source

RepositoryItemSearchControl.ShowDefaultButtonsMode Property

Gets or sets the mode in which the Search and Clear buttons are displayed.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(ShowDefaultButtonsMode.Default)]
[DXCategory("Behavior")]
public ShowDefaultButtonsMode ShowDefaultButtonsMode { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(ShowDefaultButtonsMode.Default)>
Public Property ShowDefaultButtonsMode As ShowDefaultButtonsMode

Property Value

TypeDefaultDescription
DevExpress.XtraEditors.Repository.ShowDefaultButtonsModeDefault

A ShowDefaultButtonsMode enumeration value that specifies the mode in which the Search and Clear buttons are displayed.

|

Remarks

The ShowDefaultButtonsMode property allows you to specify how the SearchControl displays its default buttons. The ShowDefaultButtonsMode enumeration provides the following values:

|

Value

|

Description

| | --- | --- | |

AutoChangeSearchToClear and Default

|

The Search Button changes to the Clear Button if the text is typed in the search box

| |

AutoShowClear

|

The Clear Button is displayed if the text is typed in the search box

| |

Always

|

Both the Search and Clear Buttons are always displayed

|

The RepositoryItemSearchControl.ShowClearButton and RepositoryItemSearchControl.ShowSearchButton settings override the ShowDefaultButtonsMode setting.

See Also

ShowClearButton

ShowSearchButton

ShowMRUButton

RepositoryItemSearchControl Class

RepositoryItemSearchControl Members

DevExpress.XtraEditors.Repository Namespace