开发者

How to use DrawThemeTextEx in WPF

I'm working on an application that displays text on Aero Gla开发者_如何学Goss. To make it readable I used a OuterGlowBitmapEffect, but, as also described here this is no longer possible in .NET 4 and the DropShadowEffect won't work for Glass either.

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

So how can you use this in WPF?

Thanks


I am also trying to use DrawThemeTextEx however I can not locate any samples that use this along with the correct system fonts.

The following effect in .NET 4 is close to the Aero glass text and replaces the BitmapEffects.

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜