具有自动平移动画的图像控制 [英] Image control with automatic panning animation

查看:89
本文介绍了具有自动平移动画的图像控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我认为这很简单,但还没有找到解决方案:我在Stackpanel中有一个Image控件,其Stretch属性设置为"UniformToFill" ;。我希望图像能够自动平移,与启动屏幕上的照片
图块上的内容类似。

I assumed this was easy but have not found a solution yet: I have an Image control in a Stackpanel with the Stretch property set to "UniformToFill". I would like the image to automatically pan continuously similar to what happens on the Photos tile on the startscreen.

是否有实现它的简单方法?

Is there a simple way to implement that?

推荐答案

您好,

您可以使用自定义实现此目的控件。

You can achieve this by using Custom Controls.

此处   是实现自定义动态磁贴(在应用内部)的示例,它还包括"平移"和"平移"。照片效果
tile。

Here is an example of implementing custom live tiles (inside app), it also includes the "panning" effect of the Photos tile.


这篇关于具有自动平移动画的图像控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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