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

Windows 8 Theme

3 Answers 183 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Saif
Top achievements
Rank 2
Saif asked on 29 Jun 2014, 07:55 PM
Hi,

I applied the Windows8 Theme in my form.
Is it possible to change the ForeColor and BackColor of the Form Title?
Thanks.

3 Answers, 1 is accepted

Sort by
0
Saif
Top achievements
Rank 2
answered on 30 Jun 2014, 06:56 AM
Ok got it now

this.FormElement.TitleBar.TitleBarFill.BackColor = Color.WhiteSmoke;
this.FormElement.TitleBar.TitleBarFill.BackColor2 = Color.WhiteSmoke;
this.FormElement.TitleBar.TitleBarFill.BackColor3 = Color.WhiteSmoke;
this.FormElement.TitleBar.TitleBarFill.BackColor4 = Color.WhiteSmoke;

my only problem is the border
0
Ralitsa
Telerik team
answered on 01 Jul 2014, 08:12 AM
Hi Saif, 

Thank you for contacting us. 

I see that you found how you can change the BackColor property of title bar. If you want to hide the border of title bar, you need to set the Visibility property to Collapsed of BorderPrimitive. Please take a look at the code snippet: 
this.FormElement.TitleBar.BorderPrimitive.Visibility = ElementVisibility.Collapsed;

I hope this will help. Do not hesitate to write back with further questions.

Regards,
Ralitsa
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Saif
Top achievements
Rank 2
answered on 02 Jul 2014, 09:03 AM
Thank you so much Ralitsa
Tags
Themes and Visual Style Builder
Asked by
Saif
Top achievements
Rank 2
Answers by
Saif
Top achievements
Rank 2
Ralitsa
Telerik team
Share this question
or