Vista-Style Windows

One of the glaring oversights in WPF is that it doesn't include any managed classes that wrap the new features in Vista. You may have already seen the lack of integration with the UAC security model (which may require you to write a manifest, as described in Chapter 3). Just as conspicuous is the lack of support for extending the "glass blur" effect in window frames and creating dialog boxes using the new task dialog box style.

Fortunately, none of these missing features is truly out of reach. You can gain access to any of them using .NET's P/Invoke feature to make unmanaged calls to the Win32 API. In the following sections, you'll learn how to use Vista's glass effect and new dialog boxes.

But before you go any further, ...

Get Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.