How to pass an object to background project in Windows Phone?
问题 My problem is that I have an StorageFile object in foreground and want to play it in BackgroundMediaPlayer like this: mediaPlayer.SetFileSource(soundStorageFile); but it is not possible to use SetFileSource() in the foreground, you should call it in the background task, or initialize a third project in the background and call it from there. So how can I pass an object to the background project? (It's a Windows Phone Runtime app) 回答1: Communication between UI and BackgroundMediaPlayer can be