Skip to main content
A newer version of this page is available. .

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.v19.2.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowNullTextIfFocused property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also