Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Acrylic UWP Title bar C#

 var view = ApplicationView.GetForCurrentView();

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

            // active
            view.TitleBar.BackgroundColor = Color.FromArgb(255, 8, 87, 180);
            view.TitleBar.ForegroundColor = Colors.White;

            // inactive  
            view.TitleBar.InactiveBackgroundColor = Color.FromArgb(255, 8, 87, 180);
            view.TitleBar.InactiveForegroundColor = Colors.Black;

            // button
            view.TitleBar.ButtonBackgroundColor = Color.FromArgb(255, 8, 87, 180);
            view.TitleBar.ButtonForegroundColor = Colors.White;

            view.TitleBar.ButtonHoverBackgroundColor = Colors.Blue;
            view.TitleBar.ButtonHoverForegroundColor = Colors.White;

            view.TitleBar.ButtonPressedBackgroundColor = Colors.Blue;
            view.TitleBar.ButtonPressedForegroundColor = Colors.White;

            view.TitleBar.ButtonInactiveBackgroundColor = Colors.DarkGray;
            view.TitleBar.ButtonInactiveForegroundColor = Colors.Gray;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Acrylic #UWP #Title #bar
ADD COMMENT
Topic
Name
5+7 =