问题
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.
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.
How do I make sure the default theme is always used? Doesn't have to be a XNA specific solution.
回答1:
Use this:
System.Windows.Forms.Application.VisualStyleState = System.Windows.Forms.VisualStyles.VisualStyleState.ClientAndNonClientAreasEnabled;
来源:https://stackoverflow.com/questions/14541433/xna-window-border-changing-theme-on-fullscreen-to-windowed-transition