RadRibbonForm and default theme

10 posts, 0 answers
  1. Scott
    Scott avatar
    4 posts
    Member since:
    Sep 2010

    Posted 02 Sep 2010 Link to this post

    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
  2. waseem
    waseem avatar
    32 posts
    Member since:
    Jun 2006

    Posted 07 Sep 2010 Link to this post

    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,
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 08 Sep 2010 Link to this post

    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
  5. waseem
    waseem avatar
    32 posts
    Member since:
    Jun 2006

    Posted 09 Sep 2010 Link to this post

    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,
  6. Scott
    Scott avatar
    4 posts
    Member since:
    Sep 2010

    Posted 09 Sep 2010 Link to this post

    Stefan,

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

    - Scott
  7. waseem
    waseem avatar
    32 posts
    Member since:
    Jun 2006

    Posted 13 Sep 2010 Link to this post

    Dear,

    How to follow the ticket.
  8. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 14 Sep 2010 Link to this post

    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
  9. Scott
    Scott avatar
    4 posts
    Member since:
    Sep 2010

    Posted 14 Sep 2010 Link to this post

    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
  10. waseem
    waseem avatar
    32 posts
    Member since:
    Jun 2006

    Posted 14 Sep 2010 Link to this post

    Dear Stefan ,

    Sorry to say nothing is working. same output.

    i will submit the support ticket.

    Regards,

  11. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 17 Sep 2010 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready