This is a simplest example of building a form with rounded corners with WPF.
This tecnique relies on AllowsTransparency
property of WPF window. While it is the easiest way to achieve desired behavior this is not the most resource effective way.
You can go down to Windows API level and catch WM_PAINT message. This is the longest but most effective way.