Skip to main content

SearchControl.NullTextForeground Property

Gets or sets the SearchControl.NullText foreground color. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v23.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public Brush NullTextForeground { get; set; }

Property Value

Type Description
Brush

The foreground color.

Remarks

You use the SearchControl.NullText property to specify the text displayed by the SearchControl when no search request is entered. To customize the null text foreground color, use NullTextForeground property. The code below shows an example.

xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"

<dxe:SearchControl NullText="Hello world" NullTextForeground="Red"/>

See the result below.

SearchControl_NullTextForeground

See Also