Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Change Highlight/Select Color of NumericUpDown

$
0
0
Hi,

I believe you are talking about the Background color when the mouse is selecting the numeric values, inside the DoubleUpDown.
For a TextBox, you would use :
SelectionBrush="Red"
For a DoubleUpDown, you can create your own DoubleUpDown, and set its TextBox's SelectionBrush :
 public class MyDoubleUpDown : DoubleUpDown
  {
    public override void OnApplyTemplate()
    {
      base.OnApplyTemplate();
      if( this.TextBox != null )
      {
        this.TextBox.SelectionBrush = Brushes.Red;
      }
    }
  }

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>