iOS 7使用WPF模糊叠加效果? [英] iOS 7's blurred overlay effect using WPF?

查看:71
本文介绍了iOS 7使用WPF模糊叠加效果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple的叠加层似乎不仅仅是透明度。关于如何用WPF实现这种效果的任何想法?

图像: http://i.stack .imgur.com / RKsfv.jpg [ ^ ]

It seems Apple's overlay is more than just a transparency. Any ideas on how to achieve this effect with WPF?
Image: http://i.stack.imgur.com/RKsfv.jpg[^]

推荐答案

这是一个新窗口,窗口的一半(顶部)给出了少量的透明度。



您可以尝试添加一个黑色背景的新StackPanel,其Alpha值设置为.4到当前窗口,并填充底部80%与孩子一起将具有包含内容的Solid背景,其余的顶级内容将具有透明主题,因为StackPanel将具有透明度。



内容可以在底部使用



It is a new window coming up, and half the window (the top of it) is given a small amount of transparency to.

You can try to add a new StackPanel with Black background whose Alpha value is set to .4 to your current window, and fill the bottom 80% with a child that would have a Solid background with the content on it, the remaining top content would have a Transparent theme because the StackPanel would have the transparency.

The content can be aligned at the bottom using

<stackpanel name="newWindow">
   <!-- Following is the child panel with the Content; Background is White -->
   <stackpanel verticalalignment="Bottom" background="White">
      <!-- Add the content here -->
   </stackpanel>
</stackpanel>





您将在应用程序中显示或隐藏 newWindow


这篇关于iOS 7使用WPF模糊叠加效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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