Skip to main content
All docs
V25.1
  • 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.1.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