When you run WPF message box, by default here’s the output:
To fix this, In Visual Studio 2010
1. Add new item –> Application Manifest file
2. Uncomment the following lines:
<dependency>
<dependentAssembly>
<assemblyIdentity
type=”win32″
name=”Microsoft.Windows.Common-Controls”
version=”6.0.0.0″
processorArchitecture=”*”
publicKeyToken=”6595b64144ccf1df”
language=”*”
/>
</dependentAssembly>
</dependency>
3. In project properties, Debug tab, uncheck “Enable Visual Studio Hosting Process”.
Below is the updated output:
References: