How to use DrawThemeTextEx in WPF

I am working on an application that displays text on Aero Glass. To make it available for reading, I used OuterGlowBitmapEffect, but as described here is , this is not possible in .NET 4, and DropShadowEffect will not work for Glass.

While searching for a solution, I came across my own DrawThemeTextEx in DWMApi, but all the examples I found were for WinForms and not for WPF.

So how can you use this in WPF?

thank

+5
source share
1 answer

I am also trying to use DrawThemeTextEx, but I can not find patterns that use this together with the correct system fonts.

.NET 4 Aero BitmapEffects.

   <Decorator>
       <Decorator.Effect>
           <DropShadowEffect BlurRadius="10" Color="White" ShadowDepth="0" />
       </Decorator.Effect>
   </Decorator>
0

All Articles