XNA 窗口边框在全屏到窗口过渡时更改主题 [英] XNA window border changing theme on Fullscreen to Windowed transition

查看:29
本文介绍了XNA 窗口边框在全屏到窗口过渡时更改主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 XNA 中从全屏模式切换到窗口模式时,窗口不使用默认的 windows 主题,而是使用旧的非航空"样式.我使用的是 Windows 8,不知道不同主题的新术语.

When I'm going from fullscreen to windowed mode in XNA the window does not use the default windows theme but the old "non-aero" style. I'm using Windows 8, don't know the new terms for the different themes.

我尝试了这个解决方案:XNA 丢失标题栏主题全屏-> 窗口过渡,但它似乎不起作用,至少在 Windows 8 上不起作用.

I tried this solution: XNA losing title bar theme on fullscreen->windowed transition, but it doesn't seem to work, at least not on Windows 8.

如何确保始终使用默认主题?不必是 XNA 特定的解决方案.

How do I make sure the default theme is always used? Doesn't have to be a XNA specific solution.

推荐答案

使用这个:

System.Windows.Forms.Application.VisualStyleState = System.Windows.Forms.VisualStyles.VisualStyleState.ClientAndNonClientAreasEnabled;

System.Windows.Forms.Application.VisualStyleState = System.Windows.Forms.VisualStyles.VisualStyleState.ClientAndNonClientAreasEnabled;

这篇关于XNA 窗口边框在全屏到窗口过渡时更改主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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