Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EditBase.PlaceholderText Property

Gets or sets the placeholder text. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public string PlaceholderText { get; set; }

#Property Value

Type Description
String

The placeholder’s text.

#Remarks

ComboBoxEdit shows the PlaceholderText if only the combo box’ IsFilterEnabled property is activated. The combo box hides the placeholder text after a user starts to enter a filter query.

For combo boxes with disabled filter functionality, you can specify the EditBase.LabelText property to show the accompanying text.

The following example adds a filter prompt to a Combo Box:

Combo box placeholder text

<dxe:ComboBoxEdit IsFilterEnabled="True"
                  BoxMode="{Binding SelectedBoxMode}"
                  ItemsSource="{Binding BoxModes}"
                  LabelText="Box Mode"
                  PlaceholderText="Type box mode name" 
                  PlaceholderColor="Gray" 
                  TextFontSize="20" 
                  TextHorizontalAlignment="Start" 
                  TextFontAttributes="Bold"/>
See Also