Visual Inheritance

11 posts, 2 answers
  1. DoomerDGR8
    DoomerDGR8 avatar
    133 posts
    Member since:
    Aug 2010

    Posted 11 Jan 2011 Link to this post

    I'm building an application with extensive visual inheritance. I have a Base RadForm. I need to have Windows7 theme application-wide. All forms inheriting this form have the correct theme but all controls that I place on the inheriting form are not picking the theme. How do I go about this? Need to manage theme for every Telerik control while using visual inheritance.

    Edit: Here is a sample project. It has no theme (default blue theme) at the moment. I need Windows 7 theme (example) across the application but I want to set it through the BaseRadForm. One location to update theme application-wide.
  2. DoomerDGR8
    DoomerDGR8 avatar
    133 posts
    Member since:
    Aug 2010

    Posted 12 Jan 2011 Link to this post

    Anyone please.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 13 Jan 2011 Link to this post

    @Telerik - The response to this can be found in this other forum post
    @Hassan - I'd suggest only opening one thread per question. Opening multiple threads per question can slow down responses from Telerik.

    Thanks
    Richard
  5. DoomerDGR8
    DoomerDGR8 avatar
    133 posts
    Member since:
    Aug 2010

    Posted 13 Jan 2011 Link to this post

    This thread deals with common theme in visual inheritance only. The other is related to a grid not correctly inherited.
  6. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 13 Jan 2011 Link to this post

    Apologies. I was getting this thread mixed with another one.
    Richard
  7. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 13 Jan 2011 Link to this post

    Hello Hassan,

    You can set the theme for the entire application. Please have a look at this documentation. In addition, you might find this forum thread useful on changing the theme at runtime
    Regards,
    Richard
  8. DoomerDGR8
    DoomerDGR8 avatar
    133 posts
    Member since:
    Aug 2010

    Posted 13 Jan 2011 Link to this post

    OK. Got Application-wide theme. However, Had to collapse the Ribbon's QuickAccess bar and the Application Menu. Wish I could get the exact layout as shown in the demos.
  9. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 13 Jan 2011 Link to this post

    Hello,

    If you could include a screenshot of what you are trying to do, and the result you are currently getting, I'll do my best to help
    regards,
    Richard
  10. DoomerDGR8
    DoomerDGR8 avatar
    133 posts
    Member since:
    Aug 2010

    Posted 13 Jan 2011 Link to this post

    Here's the issue I face. The Ribbon is not what I see in the IDE designer. and the Quick Access bar appears corrupt. (The colors of the application menu is resolved, thank you)
  11. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 13 Jan 2011 Link to this post

    Hello,

    Ok, I've now seen what you mean. When adding a RibbonBar, and changing the form to a RadRibbonForm (yes to the resulting dialog) then the items appear bold. I will look into this for you and get back to you as soon as I can
    Richard
  12. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 13 Jan 2011 Link to this post

    Hello again hassan,

    Ok, I've found a way around this. In order to change the look of the text for the RadButtonElements that are in the QuickAccessToolbar under Windows7Theme you need to change the TextRenderingHint.
    E.g.
    Me.RadButtonElement1.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAlias

    I hope that helps, but let me know if yuo need more information
    Richard
Back to Top
UI for WinForms is Visual Studio 2017 Ready