Windows 8 Theme

4 posts, 0 answers
  1. Saif
    Saif  avatar
    30 posts
    Member since:
    Apr 2014

    Posted 29 Jun 2014 Link to this post

    Hi,

    I applied the Windows8 Theme in my form.
    Is it possible to change the ForeColor and BackColor of the Form Title?
    Thanks.
  2. Saif
    Saif  avatar
    30 posts
    Member since:
    Apr 2014

    Posted 30 Jun 2014 Link to this post

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

    Posted 01 Jul 2014 Link to this post

    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.
     
  5. Saif
    Saif  avatar
    30 posts
    Member since:
    Apr 2014

    Posted 02 Jul 2014 Link to this post

    Thank you so much Ralitsa
Back to Top