开发者

Years' ComboBox WP7

开发者 https://www.devze.com 2023-03-23 10:48 出处:网络
I\'m actually working on a Windows Phone 7 application that contains a few comboBox, in one of them \"a years ComboBox\".I want to insert a loop in that comboBox that should contain years from 1919 ti

I'm actually working on a Windows Phone 7 application that contains a few comboBox, in one of them "a years ComboBox".I want to insert a loop in that comboBox that should contain years from 1919 till the present year.How开发者_开发知识库 should i proceed?


I would take a look at the Silverlight Toolkit for Windows Phone. It contains a DatePicker bring up a looping/scrolling date/month/year selector, emulating the feel of the native applications. Since the source is available, you could use this as a starting point to create your own "year selector" from the components.


Check out this blog from Telerik on how to accomplish the looping effect. Essentially it is just a list with a virtualized data source.

0

精彩评论

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

关注公众号