码迷,mamicode.com
首页 > Windows程序 > 详细

Win10 UI介绍之Titlebar

时间:2015-12-18 18:16:01      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:

活动状态

技术分享

非活动状态

技术分享

 

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/

Win10 UI介绍之Titlebar

标签:

原文地址:http://www.cnblogs.com/luquanmingren/p/5057389.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!