1. FercKast's Avatar
    Hi, I was just trying out VS Community 2015 to do a small side-project and couldn't find where to set the title bar color for either the new "universal" apps or legacy Windows "forms" programs when they run on Windows 10. I tried a few suggestions from google search, but the title bar color was still grey. Seeing as both the desktop & mobile version of Office 2016 can do this, I know it is possible. I'm just wondering what property I'm overlooking or setting that I may not have turned on.
    09-05-2015 07:03 PM
  2. Ticomfreak's Avatar
    If you are developing a Windows 10 universal app in C#, you can change title bar settings by using this code in your code-behind file (xxx.cs):

    var titlebar = ApplictionView.GetForCurrentView().Titlebar;
    titlebar.BackgroundColor = Colors.Black //Sets title bar background to black
    titlebar.ForegroundColor = Colors.White //Sets title bar title to white
    titlebar.ButtonBackgroundColor = Colors.Black; //Sets title bar button's background to black
    titlebar.ButtonForegroundColor = Colors.White; //Sets title bar button's foreground color to white.

    There are also other variables for hover background and pressed and disabled. You can also use the space in the titlebar for conent by using this code:

    CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;

    Source: https://marcominerva.wordpress.com/2...ndows-10-apps/
    11-13-2015 01:25 PM

Similar Threads

  1. Screen Windows boot manager, Samsung Galaxy ATIV-S (Windows Phone 8).
    By Windows Central Question in forum Ask a Question
    Replies: 1
    Last Post: 09-14-2015, 10:26 AM
  2. Show me your PC (Running Windows 10)
    By DarwinPurol in forum Windows 10
    Replies: 8
    Last Post: 09-06-2015, 01:53 AM
  3. Replies: 0
    Last Post: 09-05-2015, 06:44 PM
  4. I got an error code for Windows, what do I do?
    By Windows Central Question in forum Ask a Question
    Replies: 0
    Last Post: 09-05-2015, 05:55 PM
  5. Windows 10 mobile 10512
    By Celldweller97 in forum Ask a Question
    Replies: 1
    Last Post: 09-05-2015, 05:54 PM