Sometimes as developers we have to face the windows versioning problem. Fortunately there are only very few cases where the problem is in the functionality part of our application however this does not apply to the GUI. As you may known already, there is a huge difference in the way that the different versions of windows handle the Graphics. For that reason there are some workarounds you may find in StackoverFlow etc.. to reduce (and usually eliminate) those issues.

In this post we will just give a ready made example to create a seemless WPF window:

Step 1: Copy the following part in your Apps.xaml

 

Step 2: Use the following part in your mainWindow.xaml

 

Step 3: Put this final part in your mainWindow.cs

 

Tips: You need to install the Segoe UI family (and the Segoe MDL2 in Windows 7)

Author

Write A Comment