Skip to main content

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

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