Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SearchControl.NullTextForeground Property

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

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.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