在 UWP 应用程序中禁用全屏/最大化按钮? [英] Disable fullscreen/maximise button in UWP-application?

查看:22
本文介绍了在 UWP 应用程序中禁用全屏/最大化按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发适用于桌面平台的通用 Windows 平台应用程序.如何在 Windows 10 中从 禁用/删除最大化按钮?

I'm working on a Universal Windows Platform-application for desktop platforms. How can I disable/remove the maximise-button from a <page> or <application> in Windows 10?

推荐答案

你不能.我没有看到任何禁用这些按钮的选项.您只能更改它们的颜色.

You cannot. I didn't see any option to disable these buttons. You can only change their colors.

ApplicationViewTitleBar titlebar = ApplicationView.GetForCurrentView().TitleBar;

titlebar.ButtonBackgroundColor = Windows.UI.Color.FromArgb(255, 126, 188, 66);
titlebar.ButtonForegroundColor = Windows.UI.Colors.White;

这篇关于在 UWP 应用程序中禁用全屏/最大化按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆