My WPF control library uses multiple theme XAML files to adapt to the different UI themes of previous Windows versions. Besides Generic.xaml it contains Classic.xaml, Luna.NormalColor.xaml, other Luna colours, Aero.NormalColor.xaml and now I've added Aero2.NormalColor.xaml to also support Windows 8. At least this was the name I've found on the internet. This solution targets the .NET 4.0 Client Profile framework. But here's the problem:
When I compile it with Visual Studio 2010 SP1 on Windows 7, my main development environment, and copy the binary over to a Windows 8 machine, the app is using the Generic.xaml style.
Only when I copy the source code over to the Windows 8 machine and re-compile it with Visual Studio 2012 Update 1, then the Aero2 theme is used and my app control looks more like a citizen of Windows 8.
Is this a known problem of WPF or VS2010? There's hardly any information about theme-specific styles for WPF and Windows 8 available.