地铁应用中的DropShadow效果 [英] DropShadow Effect in a metro app

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

问题描述

大家好,

我无法在任何Metro控件上找到效果属性。

I am not able to find the Effect Property on any of the Metro Controls.

有人能说出来吗我如何为Silverlight或Windows WPF应用程序中的Metro应用程序实现DropShadow效果:

Can someone tell me how to achive the DropShadow effect for a metro app as it was in Silverlight or Windows WPF application:

<TextBox ...>
  <TextBox.Effect>
      <DropShadow />
  </TextBox.Effect>
</TextBox>

问候,

Steve

推荐答案

Metro XAML无效果。您可以使用与DirectWrite / Direct2D的互操作来创建文本并对其应用d2d效果,然后在XAML应用程序中将结果显示为图像。在文本输入的情况下,这可能不容易或有用,因为你的代码示例中有
的TextBox。您可以尝试将绑定到同一文本的多个TextBox分层,以创建假阴影效果。 
No effects in Metro XAML. You could use interop with DirectWrite/Direct2D to create text and apply d2d effect to it and then show result in your XAML app as image. That is not likely to be easy or useful in case of text input, since you have TextBox in your code sample. You could try to layer multiple TextBoxes bound to the same text to create fake shadow effect. 


这篇关于地铁应用中的DropShadow效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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