2012-01-10 60 views
0

这是可能获得访问o library list和播放歌曲在我的应用程序?不喜欢thisJumpList?进入图书馆

如果不是...如何做到这一点JumpList?我无法找到好的示例代码,(this很丑并且无法正常工作)。

他的JumpList是一个特殊的ListBox?我对吗?如何选择哪首歌曲?

回答

1

早在2011年8月之前,新的Silverlight工具包为WP7.1芒果这是一个特殊的ListBox与代码逻辑来定位主要列表项。

但在最新的工具,如果你使用

LongListSelector在你的.xaml显示的项目列表中,然后它给你的跳转列表元素作为控制的一部分,它是作为一个控制。

For more information and sample on the LongListSelector refer this link.

可以download silverlight toolkit from here

+0

谢谢!也许你知道,可以访问音乐库列表吗? – JohnCE 2012-01-10 21:08:42

+0

实际上,您可以像下面一样访问MediaLibrary:MediaLibrary ml = new MediaLibrary(); SongCollection cl = ml.Songs; ArtistCollection artist = ml.Artists; AlbumCollection albums = ml.Albums; foreach(专辑专辑中的专辑) \t { //在此处访问专辑相关数据 string albumArtist = album.Artist.Name; \t \t \t}欲了解更多信息,请使用此链接http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.medialibrary.aspx – Santhu 2012-01-11 05:54:04