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; } } }