Modfying existing themes for RadForm

16 posts, 0 answers
  1. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 30 Jul 2008 Link to this post

    How do I load the existing themes (e.g. Office2007Black) into the visual style builder to customize them?  Loading the RadForm control simply loads the control default, and I cannot add from assembly because, I believe, the RadForm does not inherit from RadControl and thus is not a choice.
  2. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 30 Jul 2008 Link to this post

    I forgot to mention that I am using the new Q2 2008 release of the RadControls for WinForms.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 31 Jul 2008 Link to this post

    Hi Adam,

    Thank you for interest in RadControls for WinForms.

    To get all theme files you should download source code from your account (if you have subscription).
    The themes are located in a folder named RadControlsThemes.* (for example RadControlsThemes.Aqua)

    For your convenience I've attached all RadForm themes.

    Do not hesitate to contact me if you want further assistance with themes,

    Best wishes,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 31 Jul 2008 Link to this post

    Even with the theme opened, I can't seem to modify the form's titlebar.  Is it possible to use a custom image for the left corner of the titlebar? 
  6. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 01 Aug 2008 Link to this post

    Hello Adam,

    About the Form image you should use the form's property:

    form1.FormElement.TitleBar.ImageIcon = new Icon(@"MyAppIcon.ico");

    That represents the icon for the form (left side of the TitleBar and icon in the task bar when window is minimized).

    About the VSB design of the form's title bar - this is an issue that will be address in our next release.
    For the time being, the workaround I can suggest is to design a theme in VSB that includes the RadForm titlebar as well (be aware to include also the images for the title bar buttons). Then replace in the theme XML file the tag <StylesheetRelations>... </StylesheetRelations> with this:

    <StylesheetRelations> 
            <RadStylesheetRelation RegistrationType="ElementTypeControlType" ControlType="Telerik.WinControls.RadForm" ElementType="Telerik.WinControls.RootRadElement" />
            <RadStylesheetRelation ElementType="Telerik.WinControls.UI.RadFormElement" RegistrationType="ElementTypeDefault" />
        <RadStylesheetRelation ElementType="Telerik.WinControls.RootRadElement" RegistrationType="ElementTypeControlType" ElementName="" ControlName="" ControlType="Telerik.WinControls.UI.RadTitleBar" />
            <RadStylesheetRelation ElementType="Telerik.WinControls.UI.RadFormTitleBarElement" RegistrationType="ElementTypeDefault" />  
      </StylesheetRelations>

    Sorry for the inconvenience caused.
    I have updated your Telerik points for the reported bugs.


    Regards,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 01 Aug 2008 Link to this post

    I did some experimenting before your last suggestion and noticed that the RadTitleBar is a control that I can customize in the VSB.  This is really the item that I want to customize.  The rounded bullet-like shape that appears on the left side of the title bar I'd like to add our company's logo to.  Using the RadControlSpy, I can temporarily change the ImagePrimitive on the titlebar element.  This change is obviously temporary.  Is there any way you can post the office2007black theme for the RadTitleBar?  It looks like if I had the existing themes for that, I could replace the image.

    (We don't yet have a subscription for the WinForms - we do for the ASPNET AJAX controls - and we plan on purchasing WinForms soon).

    Thank you.
  8. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 01 Aug 2008 Link to this post

    Hello Adam,

    I suggest using RadTitleBar with ShapedForm (see the attached project)
    It should be easy to customize the RadTitleBar using the SmartTag->Edit UI elements (see the screenshots) or to change image via custom theme. I've attached a modified Office2007Black theme for RadTitleBar which sets custom image in the left corner.

    If you have additional questions, feel free to contact me.

    All the best,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 06 Jan 2009 Link to this post

    >>To get all theme files you should download source code from your account (if you have subscription).
    >>The themes are located in a folder named RadControlsThemes.* (for example RadControlsThemes.Aqua)

    Where do I download these from?  I can't seem to find this anywhere in my account.  I am now in need of the docking manager (document presenter) default theme files in xml so they can be loaded into the VisualStyle Builder.

    Thank You!!
  10. Petia
    Admin
    Petia avatar
    25 posts

    Posted 08 Jan 2009 Link to this post

    Hi Adam,

    The source code files are located in your account, under Purchases and Downloads >RadControls for WinForms >Downloads. Please see screenshot below:



    Sincerely yours,
    Petia
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  11. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 08 Jan 2009 Link to this post

    Thank you for the reply.  I can see the Source code link for Q3 2008, but not Q2.

    Are the theme files for 2008.3.1204 fully compatible with Q2 2008 SP1?  I haven't fully upgraded to Q3 yet.
  12. Petia
    Admin
    Petia avatar
    25 posts

    Posted 08 Jan 2009 Link to this post

    Hi Adam,

    Yes, the Q3 XML theme files are compatible with Q2. You can also download the Q2 source by simply selecting the option in the drop down menu for "Select a version." I just checked your account and you have the source code for Q2 2008SP1 available for download.

    Sincerely yours,
    Petia
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  13. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 08 Jan 2009 Link to this post

    Ok, the link wasn't there when I selected Q2 2008 just a moment ago, but now when I try the link is there.  Thanks for getting this sorted out.
  14. bird
    bird avatar
    6 posts
    Member since:
    May 2011

    Posted 11 Dec 2011 Link to this post

    Hi petia:
                can you tell me how to visa click one button to switch all the  radform's themeName? I hope you can give me  some examples!
    thank u !
  15. Svett
    Admin
    Svett avatar
    728 posts

    Posted 14 Dec 2011 Link to this post

    Hi Bird,

    You can read more about the different ways to apply a theme in the online documentation.

    Regards,
    Svett
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

  16. bird
    bird avatar
    6 posts
    Member since:
    May 2011

    Posted 11 Jan 2012 Link to this post

    HI Svett :

         Now I need to change all  application  controls' s  theme expect button that  trigger change theme ,what should i do ?
    Thank u!
  17. Svett
    Admin
    Svett avatar
    728 posts

    Posted 16 Jan 2012 Link to this post

    Hello bird,

    The only way to do that is to go through all forms (except the button) and set their ThemeName property. In this case you cannot use ThemeResolutionService.ApplicationThemeName because it takes precedence over the ThemeName property of the control.

    Regards,
    Svett
    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Back to Top
UI for WinForms is Visual Studio 2017 Ready