We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the negative foreground color in WPF PercentTextBox?

Platform: WPF |
Control: PercentTextBox |
Published Date: January 30, 2015 |
Last Revised Date: July 23, 2021 |
Product Version:

You can change a negative color for the value of WPF PercentTextBox by setting the NegativeForeground property and it will be applied when the ApplyNegativeForeground property is true and the PercentValue is negative. The default color of NegativeForeground is Red.


<syncfusion:PercentTextBox x:Name="percentbox" NegativeForeground="Red" ApplyNegativeForeground="True" />


percentbox.NegativeForeground=new SolidColorBrush(Colors.Red);
percentbox.ApplyNegativeForeground = true;

The following screenshot displays the foreground color when you assign a negative value.

Changing Negative Value Color in WPF PercentTextBox


2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile