Skip to content
| Marketplace
Sign in
Visual Studio>Tools>OpenXLive Windows 8 SDK for C#
OpenXLive Windows 8 SDK for C#

OpenXLive Windows 8 SDK for C#

zhxilin

|
827 installs
| (0) | Free
OpenXLive GameCenter that provides online game service for Windows Store apps created using XAML with C#.
Download

OpenXLive Windows 8 SDK Inheritance OpenXLive for Windows Phone Cloud services, support for developers Windows Store Style games or applications to increase the clouds and SNS Features help developers to minimize the workload in the cloud services integration into your game or application. These cloud services include: high scores, games, social networking, and cloud storage capabilities.

You can call the API WinRT Components provide, to call the OpenXLive Cloud features, with a minimal amount of code to implement your social features of the game. 

Or you can use OpenXLive Windows 8 SDK which provides a set of WinRT UI Template, use the UI Templates, you can develop your own game system in the user interface by C#, DirectX/C++ and JS.

1. Adding a reference

In Visual Studio 2012 Solution Explorer, select the Project Node, right-click, and from the pop-up menu, select "Add Reference..." as below:

2. Adding OpenXLive Service

First open the application entry file App.xaml.cs , In the Top of the cs file add OpenXLive Reference:

C#
Edit|Remove
csharp
using OpenXLive;
using OpenXLive; 
 
Then in the function of OnLaunched add a GameSession object after Window.Current.Activate(); add the following codes:
C#
Edit|Remove
csharp
GameSession session = XLiveGameManager.CreateSession(APISecretKey)OpenXLive.UI.XLiveUIManager.Initialize(this, session);try{    AsyncProcessResult result = await session.OpenAsync();    if (result.ReturnValue)    {        // Create game session succeeded    }    else    {        // Create game session failed    }}catch (Exception ex){    // Exception caught during the request}
GameSession session = XLiveGameManager.CreateSession(APISecretKey)  OpenXLive.UI.XLiveUIManager.Initialize(this, session);  try {     AsyncProcessResult result = await session.OpenAsync();      if (result.ReturnValue)     {         // Create game session succeeded     }     else     {         // Create game session failed     } } catch (Exception ex) {     // Exception caught during the request }
Now, in one of yourevent handlers, you can show up an OpenXLive UI Page, such as:
C#
Edit|Remove
csharp
if (XLiveGameManager.CurrentSession != null &&     XLiveGameManager.CurrentSession.IsValid &&     XLiveGameManager.CurrentSession.Profile != null){    OpenXLive.UI.XLiveUIManager.Show(OpenXLive.UI.XLivePages.HomePage);}
if (XLiveGameManager.CurrentSession != null &&      XLiveGameManager.CurrentSession.IsValid &&      XLiveGameManager.CurrentSession.Profile != null) {     OpenXLive.UI.XLiveUIManager.Show(OpenXLive.UI.XLivePages.HomePage); }
And you will see the following UI:
 
 
3.References

 

OpenXLive Website

http://www.openxlive.com/

 

OpenXLive Developer Website

http://developer.openxlive.com/

 

Getting Started with OpenXLive

http://wiki.openxlive.com/Getting-Started-with-Open-XLive.ashx

 

 

More questions, visit our Forum:

 

Technical Support E-Mail: support@openxlive.com

 QQ Group: 149993869

 Technical Support Forum: http://bbs.openxlive.net/

 Facebook: http://www.facebook.com/openxlive

 Twitter: https://twitter.com/openxlive

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft