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

TextEdit.ShowNullTextIfFocused Property

Get or sets whether the focused editor displays its null text. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public bool ShowNullTextIfFocused { get; set; }

#Property Value

Type Description
Boolean

true, to display null text in the focused editor; otherwise, false.

#Remarks

The TextEdit descendants can display a prompt text (null text). The null text is hidden by default when the editor is focused. The null text visibility is specified by the BaseEdit.ShowNullText property.

Set the ShowNullTextIfFocused property to true to display null text in the focused editor. In this case, the null text is hidden when an end user enters any value or the BaseEdit.EditValue property is set.

See Also