ComponentOne Xamarin Edition
Licensing App using Website
Getting Started with Xamarin Edition > Licensing > Licensing App using Website

ComponentOne Xamarin Edition users can license an app via the ComponentOne website. If you are using ComponentOne Xamarin Edition with Visual Studio on PC, you have the option to use the GrapeCity License Manager Add-in. For more information, see the topic For more information, see the topic Licensing your app using GrapeCity License Manager Add-in.

How to license your app using the website

  1. Open a pre-existing mobile application or create a new mobile application.
  2. Add the required Xamarin Edition NuGet packages to your application through the NuGet Package Manager.
  3. Visit https://www.grapecity.com/en/my-account/create-app-key.
    Note: You must create a GrapeCity account and login to access this web page.
  4. If you are generating a full license, select your serial number from the drop-down menu at the top of the page. If you are generating a trial license, leave it selected as Evaluation.
  5. Select C# for the language.
  6. In the App Name textbox, enter the name of your application. This name should match the Default Namespace of your PCL (shared project in your Xamarin.Forms application ). See Finding the Application Name to know how to find the name of your application.
  7. Click the Generate button. A runtime license will be generated in the form of a string contained within a class.
  8. Copy the license and complete the following steps to add it to your application.
    1. Open your application in Visual Studio or Xamarin Studio.
    2. In the Solution Explorer, right click the project YourAppName (Portable or Shared).
    3. Select Add | New Item.... The Add New Item dialog appears.
    4. Under installed templates, select Visual C# | Class.
    5. Set the name of the class as License.cs and click Add.
    6. In the class License.cs, create a new string to store the runtime license, inside the constructor as shown below.
      C#
      Copy Code
      public static class License
      {
          public const string Key = "Your Key";
      }
    7. From the Solution Explorer, open App.xaml.cs and set the runtime license, inside the constructor App() method as shown below.
      C#
      Copy Code
      C1.Xamarin.Forms.Core.LicenseManager.Key = License.Key;

If you are generating a trial license, your application is now ready to use for trial purposes. You can repeat this process for any number of applications. You must generate a new trial license for each app because they are unique to the application name.

The trial period is limited to 30 days, which begins when you generate your first runtime license. The controls will stop working after your 30 day trial has ended. You can extend your license by contacting our sales team.