Direct2 QuickStart Sample, not for Direct2 with XAML or Win8
The Direct2D QuickStart sample is for use with W32 and not XAML or Win8 . The sample uses the ID2D1HwndRenderTarget, which is NOT supported in the Windows Modern UI style apps. I spent a few minutes reading the article and realized that it was relatively useless for the implementation instructions on how to combine Direct2, direct3, and directwrite.
In Direct2D you need to use device context, this links to the XAML with the Direct2 and Direct3 libraries.
In a future post I will review a number of recent samples.