Top level font property no longer works.

5 posts, 0 answers
  1. Paul
    Paul avatar
    25 posts
    Member since:
    Jul 2010

    Posted 17 Nov 2010 Link to this post

    Since Q3-2010 the font property on the RadButton doesn't work. However you can change the textboxitem element to set the font but can you explain why this is now the case ?

    I haven't checked every rad control but the SpinEditor has the same issue...

    Thanks


    Paul.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Nov 2010 Link to this post

    Hello Paul,

    I'm running the latest version, so I can only confirm what you have written here.

    The RadButton (as with many other controls) inherit from RadControl which has a ForeColor property. (the RadButton itself does not have a ForeColor property). When you set the ForeColor on the RadButton you are actually setting the ForeColor of the RadControl, which internally sets the ForeColor of the RootElement. As you rightly pointed out, you need to set the ForeColor of the RadButtonElement.

    If you use an inherited RadButton, you could always subscribe to the ForeColorChanged event of the RadButton and set the RadButtonElement ForeColor property when that changes or provide the ForeColor property in your RadButton control that sets the color of the RadButtonElement.

    I hope this helps, but let me know if you need more information

    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Paul
    Paul avatar
    25 posts
    Member since:
    Jul 2010

    Posted 17 Nov 2010 Link to this post

    Hi Richard

    Thanks for your reply. I realise that there are different elements and setting the property on one element doesn't necessarily cascade down the element tree but the font property used to work in the previous version (Q2-2010) and now it doesn't.

    I was just wondering why Telerik had changed this !!

    Thanks again

    Paul.
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Nov 2010 Link to this post

    Hi Paul,

    My apologies that I can't answer your question on why this has changed, but I hope the information has been of some use. If there's anything else you need, just let me know.

    Richard
  6. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 19 Nov 2010 Link to this post

    Hello guys, 

    In our last release we introduced changes in ControlDefault theme which cause the observed behavior. In fact properties set in the theme have greater priority in this case. We will change the theme to support this scenario in our upcoming service pack. 

    Paul, I have updated your Telerik points for the feedback. 

    Richard, thank you  for your cooperation.

    Should you have any further questions, do not hesitate to ask.
     

    All the best,
    Stefan
    the Telerik team
    See What's New in RadControls for WinForms in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>
Back to Top
UI for WinForms is Visual Studio 2017 Ready