Articles in this section
Category / Section

How to set the positive foreground color in WPF IntegerTextBox?

1 min read

You can change the foreground color for positive value by using PositiveForeground property in WPF IntegerTextBox.

XAML

<Grid>
     <syncfusion:IntegerTextBox Name="IntegerTextBox” Width="150" Height="70" PositiveForeground="Green" />
</Grid>

C#

//Code Explains How to set positive Foreground in IntegertextBox
namespace IntegerTextBox
{
   public partial class MainWindow : Window
   {
      public MainWindow()
      {
         InitializeComponent();
         IntegerTextBox.Value = 12346;
         IntegerTextBox.PositiveForeground = Brushes.Red;
      }
   }
}

 

    Changing positive value foreground in WPF IntegerTextBox

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied