This is a migrated thread and some comments may be shown as answers.

RadRibbonForm and default theme

9 Answers 438 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 02 Sep 2010, 07:26 PM
Hi,

I used this line ( ThemeResolutionService.ApplicationThemeName = "Desert"; ) in my main form to set the default theme for the application. All works well on my main form. I then added a radRibbonForm and added a few controls to it.

When I run the application the RibbonBar and StatusBar do not reflect the default theme. I tried disabling the Aero support with this line( this.AllowAero = false; ), but I just get an error.

Error 1 'Form1' does not contain a definition for 'AllowAero' and no extension method 'AllowAero' accepting a first argument of type 'TopRate_Advantage.frmCategory' could be found (are you missing a using directive or an assembly reference?)

Any help would be appreciated.
- Scott

9 Answers, 1 is accepted

Sort by
0
waseem
Top achievements
Rank 2
answered on 07 Sep 2010, 01:27 PM
Dear,

i have the same problem

Windows Application: RadControls for WinForms Q1 2010 SP1 Demos
OS : Win7
VS 2010:

if i add RadRibbon on form Theme is not applying on Winform, but Theme is applying on RadRibbon and Status Bar its not a problem.

Regards,
0
Stefan
Telerik team
answered on 08 Sep 2010, 09:11 AM
Hi guys,

@Scott: I have tried to reproduce your scenario, but with no avail, it works fine on my end. Here is what I did:
  1. I have added few controls to my main form plus the Desert theme from the tool box. Then I have set the application theme name on the way you did it. It all works fine after starting the project.
  2. Then I have added radRibbonForm, added a few controls and the Desert theme from the tool box again and set the application theme using that same line of code. After I changed in Program.cs the Application.Run to run the ribbon form, it showed the ribbon form with the controls in it with desert theme, as it should be.
Please provide us with detailed information on how to reproduce your case; better yet, please open a new support ticket where you can attach your project. This allow me to trace and solve this case in a faster manner. I am looking forward to your reply.

 
@waseem: Since I am not quite sure how exactly you have set the theme in your application, I will suggest you to drag the Desert theme from the toolbox onto your form, and then add this code line in code view:
 
ThemeResolutionService.ApplicationThemeName = "Desert";

If this does not work, could you please provide further information on how to reproduce your case or open a support ticket and attach a project where I can see the issue?
 
Sincerely yours,
Stefan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
waseem
Top achievements
Rank 2
answered on 09 Sep 2010, 09:02 AM
Dear,

As you can see my attached files i clearly mention about the stages with file name.

I drag "Desert" Theme on my forms. on design time its looks good but run time "Mix" theme is showing "Windows / System" theme plus Desert theme.

i forget to inform you i am using VB.NET.

in load event i am using this code even


Me.AllowTheming = True
    Me.ThemeName = "Desert"

Imports Telerik.WinControls
  
Public Class RadForm2
  
    Public Sub New()
  
        ' This call is required by the designer.
        InitializeComponent()
        ThemeResolutionService.ApplicationThemeName = "Desert"
  
        ' Add any initialization after the InitializeComponent() call.
        Me.AllowTheming = True
        Me.AllowTransparency = True
        Me.ThemeName = "Desert"
        'Me.IsMdiContainer = True
        Me.Text = "RadForm MDI Parent with RadMenu"
  
    End Sub
  
End Class

please note i am using RadRibbon Form, not RadForm.

as i mention before RadForm is working fine with me only issue with RadRibbon Form.

i was watching on Video Chaning RadTheme run Time its also describe on RadForm. your MDI demo is also on RadForm.


Regards,
0
Scott
Top achievements
Rank 1
answered on 09 Sep 2010, 08:42 PM
Stefan,

I submitted a ticket with my project attached. The ticket number is 346841.

- Scott
0
waseem
Top achievements
Rank 2
answered on 13 Sep 2010, 07:11 AM
Dear,

How to follow the ticket.
0
Stefan
Telerik team
answered on 14 Sep 2010, 03:17 PM
Hello guys,

@Scott
Thank you for the project. As I said in the support ticket that you have sent, the experienced issue is caused because of the old Telerik version that you are using. In Q3 2008 there were no Aqua and Desert themes developed for RadRibbonBar. Please refer to the support ticket for detailed information.

@waseem
Unfortunatelly, I was not able to reproduce your case. 

As said earlier in this ticket, all you have to do in order to apply a theme for a whole application is to drag the Desert theme from the Toolbox onto your Form respectively RadRibbonBarForm and then simply add the next line of code into the particular form:

ThemeResolutionService.ApplicationThemeName = "Desert";

Additionally, I would like to suggest that you try setting the AllowAero property explicitly to True (generally, True is the default value) as shown in the next code snippet:
Me.AllowAero = True

You should not experience any problems following my tips in the latest Telerik version Q2 2010 SP1 (v2010.2.10.806). However, if you do so, please open a new support ticket and attach your  project (or a sample compiling project) where we can understand, trace and solve your case. 

Thank you for the understanding. I am looking forward to your reply.

Best wishes,
Stefan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Scott
Top achievements
Rank 1
answered on 14 Sep 2010, 04:12 PM
Stefan,

I replied under the support ticket also, so you can respond in either location.

The reason I was using the 2008 version is because this is the version purchased by my company and I am just now getting around to using it.

I assume the changes that you made to my application will require me to download the Q2 2010 version of the controls. If I have to download the newer version will this cause a copyright message in my application and require me to purchase the newer version?

This application will be internal use only, but it will be a distributed internal app.

Thanks,
Scott
0
waseem
Top achievements
Rank 2
answered on 14 Sep 2010, 04:45 PM
Dear Stefan ,

Sorry to say nothing is working. same output.

i will submit the support ticket.

Regards,

0
Stefan
Telerik team
answered on 17 Sep 2010, 05:47 PM
Hi waseem,

I am looking forward to your support ticket.

Greetings,
Stefan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RibbonBar
Asked by
Scott
Top achievements
Rank 1
Answers by
waseem
Top achievements
Rank 2
Stefan
Telerik team
Scott
Top achievements
Rank 1
Share this question
or