Windos 10 UWP 设置手机状态栏
来源:互联网 发布:透视衣淘宝 编辑:程序博客网 时间:2024/05/21 17:09
if (DeviceHelper.IsMobile)
{
StatusBar status = StatusBar.GetForCurrentView();
status.BackgroundColor = Color.FromArgb((byte)0xFF, (byte)0x36, (byte)0xDE, (byte)0xA1);
status.BackgroundOpacity = 1; // 透明度
status.ForegroundColor = Colors.Black;
//status.ProgressIndicator.ShowAsync();
}
//设置手机状态栏的颜色
//StatusBar status = StatusBar.GetForCurrentView();
//status.BackgroundColor = Color.FromArgb((byte)0xFF, (byte)0x36, (byte)0xDE, (byte)0xA1);
//status.BackgroundOpacity = 1; // 透明度
//status.ForegroundColor = Colors.Black;
public class DeviceHelper
{
//判断是否为手机
public static bool IsMobile => Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons");
}
- Windos 10 UWP 设置手机状态栏
- uwp开发中手机状态栏显示
- android 设置手机状态栏的背景颜色
- WINDOS服务器安全设置
- win10 UWP 应用设置
- UWP 程序标题栏设置
- uwp后退按钮手机版
- Win 10 UWP开发系列:设置AppBarButton的图标
- Win 10 UWP开发系列:设置AppBarButton的图标
- 设置APP界面沉浸手机状态栏,类似ios特性
- 设置App标题栏与手机状态栏背景颜色一致
- 设置Android应用全屏显示(隐藏手机状态栏)
- uwp开发之 设置储存
- 设置状态栏
- Windos下使用bat设置IP
- UWP
- 《Qt》part 10 Qt5.5 状态栏设置
- iOS7设置状态栏与状态栏
- GSON解析
- [Android/Root]nubia z9 max 双4G9.05 android5.1.1系统root方法
- MATLAB入门(2)--基本绘图
- LinuxMint18Beta,NDKr11c,neon-R编译Cocos2dx3.5
- java 实现即时聊天设计(利用ip进行远程通信)
- Windos 10 UWP 设置手机状态栏
- Chapter2 命令行基础(2)
- ZF_20160628_Nod.LV4
- 动画
- iOS Segment+页面滑动
- 奋斗过热的人sa
- selector以及shape
- OpenCV multiple version on Linux ENV script of setting
- 纯代码写控件