1

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.

Community
  • 1
  • 1
  • Just linking to [the other question](http://stackoverflow.com/questions/6885363/xna-losing-title-bar-theme-on-fullscreen-windowed-transition). – user1306322 Jan 27 '13 at 15:36

1 Answers1

1

Use this:

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

user1306322
  • 8,561
  • 18
  • 61
  • 122