开发者

WPF Button Styling with OuterGlowBitmapEffect

I have managed to style a button such that there is a the background I 开发者_开发百科wanted (Normal). However, I want to create an OuterGlowBitmapEffect on the content. Also, when I modify the style, it reverts to the default for MouseOver, Pressed, and HasFocus.

Here is the image of what I want, how could you do this using WPF Styles

http://tinypic.com/r/2s9ybfs/5


Without seeing your code I can't say for sure, but you need to add the "OuterGlowBitmapEffect" to the MouseOver, Pressed and HasFocus styles as well.

All these states come as a package and need to be modified in concert.

If you can, get hold of Expression Blend. This has options for creating templates and styles from existing ones and then for modifying the individual components of each aspect of the style.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜