2012-01-10 62 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