This is a migrated thread and some comments may be shown as answers.
Modfying existing themes for RadForm
15 Answers 387 Views
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 2
Adam asked on 30 Jul 2008, 03:05 PM
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.

15 Answers, 1 is accepted

Sort by
0
Adam
Top achievements
Rank 2
answered on 30 Jul 2008, 05:39 PM
I forgot to mention that I am using the new Q2 2008 release of the RadControls for WinForms.
0
Peter
Telerik team
answered on 31 Jul 2008, 08:48 AM
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.
0
Adam
Top achievements
Rank 2
answered on 31 Jul 2008, 11:44 AM
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? 
0
Peter
Telerik team
answered on 01 Aug 2008, 07:42 AM
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.
0
Adam
Top achievements
Rank 2
answered on 01 Aug 2008, 10:18 AM
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.
0
Peter
Telerik team
answered on 01 Aug 2008, 11:26 AM
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.
0
Adam
Top achievements
Rank 2
answered on 06 Jan 2009, 10:21 PM
>>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!!
0
Petia
Telerik team
answered on 08 Jan 2009, 11:04 AM
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.
0
Adam
Top achievements
Rank 2
answered on 08 Jan 2009, 11:23 AM
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.
0
Petia
Telerik team
answered on 08 Jan 2009, 11:36 AM
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.
0
Adam
Top achievements
Rank 2
answered on 08 Jan 2009, 11:38 AM
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.
0
bird
Top achievements
Rank 1
answered on 12 Dec 2011, 03:27 AM
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 !
0
Svett
Telerik team
answered on 14 Dec 2011, 12:10 PM
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.

0
bird
Top achievements
Rank 1
answered on 12 Jan 2012, 04:33 AM
HI Svett :

     Now I need to change all  application  controls' s  theme expect button that  trigger change theme ,what should i do ?
Thank u!
0
Svett
Telerik team
answered on 16 Jan 2012, 01:55 PM
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).

Asked by
Adam
Top achievements
Rank 2
Answers by
Adam
Top achievements
Rank 2
Peter
Telerik team
Petia
Telerik team
bird
Top achievements
Rank 1
Svett
Telerik team
Share this question
or