[英]Windows Phone Custom Control Design and Implementation
I am working on a windows phone app, in which I will need to add a costom "cover-flow" kind of control like how it looks like in the Spotify app below: 我正在开发一个Windows手机应用程序,我需要在下面的Spotify应用程序中添加一个costom“cover-flow”控件,如下所示:
Note: user can swipe from right to left to change song. 注意:用户可以从右向左滑动以更改歌曲。 I don't think Windows Phone SDK provide any controls support this, so I was wondering how such a thing is implemented.
我不认为Windows Phone SDK提供任何控件支持这一点,所以我想知道这样的事情是如何实现的。
I think it is either faked by a pivot page with dynamically adding/deleting pivot items, or maybe it is a custom control. 我认为它是由一个动态添加/删除数据透视项的数据透视页伪造的,或者它可能是一个自定义控件。
If I want to implement this as a custom control, does anyone has experience about it, or any sample code/tutorial will be very helpful. 如果我想将其作为自定义控件实现,那么是否有人有相关经验,或者任何示例代码/教程都会非常有用。
Thank you 谢谢
You're looking at a Panorama control . 你正在看一个Panorama控件 。 It is available out of the box with the Windows Phone SDK.
它随Windows Phone SDK开箱即用。
Telerik makes a great control that does just this. Telerik做出了很好的控制。 It's called the SlideView control.
它被称为SlideView控件。 I know it's not free, but it is only $99.
我知道它不是免费的,但它只有99美元。 Given that it might take you about 4-10 hours to create this control yourself, I'd say it's worth it.
鉴于你自己创建这个控件大约需要4到10个小时,我认为这是值得的。 If you join the Nokia Premium Developer Program you get Telerik's controls for free.
如果您加入诺基亚高级开发人员计划,您可以免费获得Telerik的控件。
Note: I do not work for Nokia or Telerik and this is NOT a paid advertisement :) 注意:我不适用于诺基亚或Telerik,这不是付费广告:)
The swipping effect is because of Panorama page. 由于Panorama页面,因此滑动效果。 to change music you need to handle gestures that will be a tough task .
改变你需要处理手势的音乐将是一项艰巨的任务。 The solution is to find a hack or have some control in the background that registers the touch event and changes the music
解决方案是在后台找到一个hack或者有一些控制来注册触摸事件并改变音乐
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.