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

2 posts, 0 answers
  1. Sanket Singhvi
    Sanket Singhvi avatar
    20 posts
    Member since:
    May 2010

    Posted 19 Nov 2010 Link to this post


    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.

  2. Pana
    Pana avatar
    748 posts

    Posted 24 Nov 2010 Link to this post

    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,
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  3. DevCraft R3 2016 release webinar banner
Back to Top