Skip to main content

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.1.dll

NuGet Package: DevExpress.Wpf.Core


public bool ShowNullTextIfFocused { get; set; }

Property Value

Type Description

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


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