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

Theme not displaying correctly at runtime

2 Answers 224 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Luke
Top achievements
Rank 1
Veteran
Luke asked on 27 Oct 2019, 12:41 PM

Good Morning All,

I am developing an application that has a main Ribbon Form as the base form.

I have added a CrystalDark theme to the form and applied it and everything is displaying as i would expect in the designer.  However when i run the application the control buttons at the top of the form and the ribbon change to a standard default windows buttons. 

I have included before and after images to this post.

Can anyone please assist in how i can get this not to happen and the theme ones to override and always show even at run-time.

Tanks in advanced

Frosty

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 28 Oct 2019, 11:37 AM

Hi Luke,

You need to set the AllowThemenig property to false. This property disables the Windows theming and the form will use the Telerik one:

this.AllowTheming= false;

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Luke
Top achievements
Rank 1
Veteran
answered on 28 Oct 2019, 12:18 PM

Hi Dimitar,

As easy as that.  Thanks very much.

Luke

Tags
Themes and Visual Style Builder
Asked by
Luke
Top achievements
Rank 1
Veteran
Answers by
Dimitar
Telerik team
Luke
Top achievements
Rank 1
Veteran
Share this question
or