Back to Devexpress

TextEdit.ShowNullTextIfFocused Property

wpf-devexpress-dot-xpf-dot-editors-dot-textedit-cccbae00.md

latest1.8 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool ShowNullTextIfFocused { get; set; }
vb
Public Property ShowNullTextIfFocused As Boolean

Property Value

TypeDescription
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

NullText

ShowNullText

TextEdit Class

TextEdit Members

DevExpress.Xpf.Editors Namespace