Hi,
这个应该是HTML来写的,XAML的话只能尽量达到这个效果。毫无疑问,必应Bing财经和下面的标题是应该与GridView分开的,通过对GridView的调整可以达到这样的效果,你可以看看这个博客:
http://blogs.u2u.be/diederik/post/2012/07/09/The-taming-of-the-Metro-GridView.aspx
剩下的问题是我们需要判断一个Item什么时候触碰到屏幕边缘以让我们能够替换掉必应Bing财经下面的标题。(这个问题用HTML的ListView很好解决因为有indexOfFirstVisible属性).XAML的话我的想法是通过VisualTreeHelper,取出每一个GridViewItem,通过TransformToVisual()方法计算与屏幕的距离(通过Window.current.Bound得到),因为这个不是事件,因此需要一个DispatchTimer来每隔一段时间计算一次来决定是否替换上面的标题。
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.