How to use the Marketplace search task for Windows Phone 8
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Use the Marketplace search task to launch the Store or Marketplace and then display the search results from the specified search terms. You can specify the type of content to search for, such as music or apps.
By using Launchers, you help provide a consistent user experience throughout the Windows Phone platform. For more information, see Launchers and Choosers for Windows Phone 8.
To search the Store for an app
Add the following statement to your code.
Add the following code to your app, and specify the search terms. Add the code to your app wherever you need it, such as in a button click event. To test this procedure, you can put the code in the page constructor. This is the code to launch the task.
To search the Store for music
Add the following statement to your code.
Add the following code to your app, and specify the search terms. Add the code to your app wherever you need it, such as in a button click event. To test this procedure, you can put the code in the page constructor. This is the code to launch the task.