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

Can not set theme on a user control which inherits the RADNumericUpDown

1 Answer 66 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Sanket Singhvi
Top achievements
Rank 1
Sanket Singhvi asked on 20 Nov 2010, 12:42 AM
Hi,

I am trying to create my own NumericUpDown by extending the RADNumericUpDown. I am trying to set the Windows7 theme on the user control. But it doesn't work.

Regards
Sanket

1 Answer, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 24 Nov 2010, 09:16 AM
Hello Sanket Singhvi,

You have to set DefaultStyleKey in the OnInitialized method. We are using a composit key to make the control find the proper style for the currently applied theme. Check the attached solution for more information.
 

Kind regards,
Pana
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
NumericUpDown
Asked by
Sanket Singhvi
Top achievements
Rank 1
Answers by
Pana
Telerik team
Share this question
or