BaseEdit.NullValue Property

Gets or sets a null value for the editor. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public object NullValue { get; set; }
Public Property NullValue As Object

Property Value

Type Description
Object

An object that represents the null value.

Remarks

Use the NullValue property to specify a null value for the editor, in addition to null and DBNull values.

To specify the text displayed within the edit box when the editor's value is null, use the BaseEdit.NullText property. Its visibility is specified by the BaseEdit.ShowNullText property.

<dxe:PasswordBoxEdit Name="passwordBoxEdit1"
                        NullValue="" NullText="Please enter your password..." />

PasswordBox_NullText

Use the TextEditBase.NullTextForeground property to change the null text's foreground color.

Implements

DevExpress.Xpf.Editors.IBaseEdit.NullValue
See Also