WP7 Integration

Prerequisites
Complete review of the Getting Started section.
Review of the Digging Deeper section.
A program registered to the ISB (for the purposes of this integration).

WP7 Integration Steps:

  1. Download the preconfigured database file for your program, as well as copy your program's Activity ID (assigned when you registered it to the ISB).
  2. Open Visual Studio and your solution.
  3. Click Add Reference as illustrated below and add the LinxterSDK.WP7.dll (found in your Linxter SDK download).

  4. Next, set the Copy Local property to True as illustrated below.
  5. Now, add the preconfigured database you downloaded for your Program to this project. Copy it into the project, click the “Refresh” icon, and then the “Show All Files”.
  6. Right click the “LinxterSDKDB” file and select “Include In Project”.
  7. Right click the “LinxterSDKDB” file again and select “Properties”, and change the“Build Action” to “Resource”
  8. Now you’re ready to start writing code. Depending on where in your code you want Linxter to reside, add these to your app.xaml.cs file:
    using Linxter.SDK; using Linxter.Common.Entities; using Linxter.SDK.EventArgs;
  9. Next, add this to your public partial class App : Application
    private LinxterSDK _Sdk;
  10. The Linxter SDK class exposes three interfaces, all of which are implemented implicitly by the public API of the the LinxterSDK class. Implement based on what makes sense for your solution. To complete, add these to your //Phone-specific initialization.
    var dbFile = new Uri("HelloWorld_WP7;component/LinxterSDKDB.db", UriKind.Relative); _Sdk = new LinxterSDK(dbFile);

  11. You are done! Linxter has been integrated into your program. You can now begin to use the methods, properties and events of the Linxter API interfaces:
    • Registration
    • CommunicationChannel
    • Messaging
  12. Note: In your code, when you call the CreateMessage() or CreateMessages() method, you will need to include your program's ActivityID which was generated when you registered your program to the ISB.

    When you are ready to deploy your Linxter enabled application, be sure to review our Deployment guidelines.