The default MessageBox in WPF looks rather ugly on Windows 7 and Windows Vista
Before
After
In order to update the messagebox, add a new app.manifest file
ensure you have the following dependency tag
1 <?xml version="1.0" encoding="utf-8"?>
2 <asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3 <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
4 <description>iDesign – Media Burner</description>
5 <dependency>
6 <dependentAssembly>
7 <assemblyIdentity name="Microsoft.Windows.Common-Controls" version="6.0.0.0" type="win32" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
8 </dependentAssembly>
9 </dependency>
10 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
11 <security>
12 <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
13 <!– UAC Manifest Options
14 If you want to change the Windows User Account Control level replace the
15 requestedExecutionLevel node with one of the following.
16
17 <requestedExecutionLevel level="asInvoker" uiAccess="false" />
18 <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
19 <requestedExecutionLevel level="highestAvailable" uiAccess="false" />
20
21 Specifying requestedExecutionLevel node will disable file and registry virtualization.
22 If you want to utilize File and Registry Virtualization for backward
23 compatibility then delete the requestedExecutionLevel node.
24 –>
25 <requestedExecutionLevel level="asInvoker" uiAccess="false" />
26 </requestedPrivileges>
27 </security>
28 </trustInfo>
29
30 <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
31 <application>
32 <!– A list of all Windows versions that this application is designed to work with. Windows will automatically select the most compatible environment.–>
33
34 <!– If your application is designed to work with Windows 7, uncomment the following supportedOS node–>
35 <!–<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>–>
36
37 </application>
38 </compatibility>
39
40 <!– Enable themes for Windows common controls and dialogs (Windows XP and later) –>
41 <!– <dependency>
42 <dependentAssembly>
43 <assemblyIdentity
44 type="win32"
45 name="Microsoft.Windows.Common-Controls"
46 version="6.0.0.0"
47 processorArchitecture="*"
48 publicKeyToken="6595b64144ccf1df"
49 language="*"
50 />
51 </dependentAssembly>
52 </dependency>–>
53
54 </asmv1:assembly>
55