混合物的效果4 [英] Effects in blend 4

查看:49
本文介绍了混合物的效果4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我想知道如何在混合4中添加多个效果?每次我添加其他效果。它取代了我放在那里的另一个。


73 kc8pdr http://www.kc8pdr.com

 I would like to know how to add more then one effects in blend 4 ? Every time I to add a other effect . It replace the other one I put there .


73 kc8pdr http://www.kc8pdr.com

推荐答案

你好kc ,

在一个控件上直观地添加多个效果,只需放下控件,例如一个Textblock,进入一个父容器控件,例如一个网格。然后将一个效果添加到父容器控件,例如一个DropShadowEffect,和另一个,例如一个BlurEffect,对于
控件本身。因此,Textblock将同时获得两种效果。

to visually add more then one effect on a single control simply put your control, e.g. a Textblock, into a parent container control, e.g. a Grid. Then add one effect to the parent container control, e.g. a DropShadowEffect, and another one, e.g. a BlurEffect, to the control itself. As a result the Textblock will get both effects.

使用此技术,您可以添加尽可能多的效果。您只需将控件放在父容器中,然后将其放在父容器中,依此类推......并向每个父容器和控件本身添加一个效果。

Using this technique you can add as much effects as you like. You simply have to put the control in a parent container, that you put in a parent container, and so on ... and add an effect to each parent container and to the control itself.

另外阅读
我博客上的这篇简短文章
关于使用此技术实现
闪亮3D字体设计
并查看我的 $的源代码b $ b Glossy  TextBlock Custom Control ,其中我使用了这种技术。 (所有使用Silverlight 3中的Blend 3进行的示例,但它们在Silverlight 4的Blend 4中的工作方式相同。)

Additionally read this short article on my blog about using this technique to achieve a Shining 3D Font Design and take a look at the sourcecode of my Glossy TextBlock Custom Control in which I used this technique. (All examples where made with Blend 3 in Silverlight 3 but they work the same in Blend 4 for Silverlight 4.)

作为父容器,您可以使用例如Grid,Border或 一个画布,但不是一个ScrollViewer。

As parent container you can use for example a Grid, a Border or a Canvas, but not a ScrollViewer.

希望这会有所帮助。如果您需要更多帮助或代码示例来解决您的具体问题,请再次发布。

Hope this helps. Please post again if you need more help or a code example to solve your specific problem.

祝您好运,

Martin

如果它能解决您的问题,请将此标记为答案。


这篇关于混合物的效果4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆