开发者

Manipulation events in wp7

I am developing Windows phone 7 applic开发者_如何学运维ation, I need to do a slide show like application. I have the File[] when I swiping left or right the previous or next Image should show. how to Do it? I think it is possible through Manipulation events. but how to do this , I dont know Can u explain this?


The simplest way to create this effect woudl be something like this:

<ScrollViewer HorizontalScrollBarVisibility="Visible">
    <StackPanel Orientation="Horizontal">
        <Image Source="A.png" />
        <Image Source="B.png" />
        <Image Source="C.png" />
        <Image Source="D.png" />
    </StackPanel>
</ScrollViewer>

Although you could add the images through code.

If you want something more complex in your animation or need control over how an image can be interacted with you may want to do something different.

Before trying to use manipulations you may be able to use the Flick event from the toolkit which may make what you're trying to achieve easier.

It will all depend on what you're trying to do. Your question isn't explicitly clear.

See also how to get swipe in windows phone 7

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜