Win10 UI介绍之Titlebar

时间:2021-02-20 22:39:48

活动状态

Win10 UI介绍之Titlebar

非活动状态

Win10 UI介绍之Titlebar

var titleBar = ApplicationView.GetForCurrentView().TitleBar;

titleBar.BackgroundColor = Colors.Azure;
titleBar.ForegroundColor = Colors.Gray;

titleBar.InactiveBackgroundColor = Colors.Yellow;   //非活动状态
titleBar.InactiveForegroundColor = Colors.DarkRed; //非活动状态

titleBar.ButtonBackgroundColor = Colors.Red;
titleBar.ButtonHoverBackgroundColor = Colors.Orange; //悬停状态
titleBar.ButtonPressedBackgroundColor = Colors.Yellow;
titleBar.ButtonInactiveBackgroundColor = Colors.Blue;  //非活动状态

titleBar.ButtonForegroundColor = Colors.SkyBlue;
titleBar.ButtonHoverForegroundColor = Colors.Silver;//悬停状态
titleBar.ButtonPressedForegroundColor = Colors.Green;
titleBar.ButtonInactiveForegroundColor = Colors.Green; //非活动状态

链接: http://pan.baidu.com/s/1eRd6R66 密码: 1ieh

https://marcominerva.wordpress.com/2015/05/19/easily-manage-the-title-bar-in-windows-10-apps/

http://blog.thomasnigro.fr/2015/02/11/exploring-w10-apis-windows-and-titlebar/ 自定义状态栏