Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Guide.ShowMarketplace Method

Displays the marketplace user interface.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)

public static void ShowMarketplace (
         PlayerIndex player
)

Parameters

player
Type: PlayerIndex
Index of the controller for the player making the request.

You can check GamerPrivileges.AllowPurchaseContent to determine if a player is allowed to purchase content before displaying a menu option that would call this method.

You can use this method to show a Marketplace offer when a game in trial mode is exiting: In your game's Game.Exit method, determine if the game is in trial mode by checking Guide.IsTrialMode, and call ShowMarketplace to show the Windows Phone Marketplace.

Dd282394.note(en-us,XNAGameStudio.41).gifWindows Phone Specific Information
On Windows Phone, this method causes the game to close so that the system user interface can be shown. For information about how to prepare for such an interruption, see Handling Interruptions on Windows Phone.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show:
© 2015 Microsoft