Search
 
SCRIPT & CODE EXAMPLE
 

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;
Comment

PREVIOUS NEXT
Code Example
Csharp :: game creator change local variable 
Csharp :: asp.net core mvc not triggering client side validation 
Csharp :: Reading a date from xlsx using open xml sdk 
Csharp :: new bitmap pixel format c# 
Csharp :: c# distinct dictionary 
Csharp :: get image information using c# 
Csharp :: how to get image from resource folder in c# 
Csharp :: listview android studio java 
Csharp :: c# escape quotes 
Csharp :: extension of c sharp 
Csharp :: c# loop back 
Csharp :: thread c# 
Csharp :: how to make play button in unity 
Csharp :: c# async in wpf 
Csharp :: unity public script 
Csharp :: c# array inst working 
Csharp :: get file id from mongodb without objectid using c# 
Csharp :: dinero en C# 
Html :: html pound symbol 
Html :: enter key vue 
Html :: cdk bootstrap 
Html :: ionic ion-title center 
Html :: jquery $ is not defined 
Html :: target blanc 
Html :: lock the zoom html 
Html :: input readonly html 
Html :: css display only on mobile 
Html :: meta icon html 
Html :: visualizador de pdf html5 
Html :: how to link a local css file in html 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =