Articles in this section
Category / Section

How to change the range adorner background in WPF DoubleTextBox?

1 min read

You can change the range adorner background by using RangeAdornerBackground property in WPF DoubleTextBox. It will be applied when EnableRangeAdorner property is true.

 

XAML

<Grid>
     <syncfusion:DoubleTextBox Name="DoubleTextBox1" Width="150" Height="50" MaxValue="100" EnableExtendedScrolling="True" RangeAdornerBackground="Green" EnableRangeAdorner="True"></syncfusion:DoubleTextBox>
</Grid>

  C#

//Code Explains how to set the RangeAdorner Background in DoubleTextbox
namespace DoubleTxtbor_color
{
   public partial class MainWindow : Window
   {
      public MainWindow()
      {
         InitializeComponent();
         DoubleTextBox1.Value = 0;
         DoubleTextBox1.EnableExtendedScrolling = true;
         DoubleTextBox1.EnableRangeAdorner = true;
         DoubleTextBox1.RangeAdornerBackground = Brushes.Green;
      }
   }
}

 

          Changing Range Adorner color in WPF DoubleTextBox

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