This is a migrated thread and some comments may be shown as answers.

How to change caret and selection colors for DateTimePicker and NumericUpDown?

0 Answers 146 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard
Top achievements
Rank 1
Richard asked on 04 Mar 2012, 06:38 AM
Hi,


We're using version 2011.3.1220.1050 of the Telerik controls for Silverlight 5. We're using the Expression Dark theme, with some of our own customizations.

The problem we're having is that the caret and selection highlight are not easily visible against the background. The caret is black against a dark grey background; the selection highlight is a slightly lighter grey than the background.

The native Silverlight TextBox control exposes three properties CaretBrush, SelectionForeground, and SelectionBackground, which let us customize this. Is there any way to do the same thing for RadDateTimePicker and RadNumericUpDown? I see there's a telerikUI:Caret control that can be styled - but it looks like that's only used by the RichTextBox.

I've attached two screenshots. The first shows how we want it to look - the customizations we've applied to the TextBox. The second screenshot shows how the DateTimePicker looks currently.


We used the following style for the TextBox:

<Style TargetType="TextBox" x:Key="DefaultTextBox">
    <Setter Property="CaretBrush" Value="White" />
    <Setter Property="SelectionBackground" Value="#335C85" />
    <Setter Property="SelectionForeground" Value="#83CDF6" />
   <!-- other setters omitted -->
</Style>


Thanks for your help,
Richard

Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Share this question
or