SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

Extending your SciChart Trial in WPF v6

If you have requested a trial extension from us, you will get the KeyCode that must be placed in your application before any SciChartSurface is shown or instantiated, for example, App.xaml.cs (see below).

The KeyCode must be set in your app once, and once only before any SciChartSurface instance is shown. Do this by calling the static SciChartSurface.SetRuntimeLicenseKey() method in App.xaml.cs.

Code samples below:

using System.Windows;
using SciChart.Charting.Visuals;

namespace YourWpfApplication
{
    /// 
    /// Interaction logic for App.xaml
    /// 
    public partial class App : Application
    {
        public App()
        {
            // Set this code once in App.xaml.cs or application startup before any SciChartSurface is shown 
            SciChartSurface.SetRuntimeLicenseKey("YOUR_KEYCODE");
        }
    }
}
Imports System.Windows
Imports SciChart.Charting.Visuals

Namespace YourWpfApplication
    Public Partial Class App
        Inherits Application

        Public Sub New()
            SciChartSurface.SetRuntimeLicenseKey("YOUR_KEYCODE")
        End Sub
    End Class
End Namespace

Extending your SciChart Trial in iOS & Android v3

If you have requested a trial extension from us, you will get the KeyCode that must be set in your app once, and once only before any SciChartSurface instance is shown.

For iOS: do this by calling the static SciChartSurface.SetRuntimeLicenseKey() method in AppDelegate.

Code samples below:

//
//  AppDelegate.swift
//  SciChartSwiftDemo
//
 
import UIKit
import SciChart

@UIApplicationMain

class SCSAppDelegate: UIResponder, UIApplicationDelegate {

 var window: UIWindow?

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        // Note! This is just an example. 
        // The real License KeyCode is found by following steps above
        SCIChartSurface.setRuntimeLicenseKey("YOUR_KEYCODE")
 
        return true
 }

}
//
//  AppDelegate.m
//  SciChartDemo
//
 
#import "AppDelegate.h"
#import "SCDConstants.h"
 
// NOTE: Import SciChart.h 
#import <SciChart/SciChart.h> 
 
@interface AppDelegate ()
 
@end
 
@implementation AppDelegate
 
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
     
    // Note! This is just an example. 
    // The real License KeyCode is found by following steps above
    [SCIChartSurface setRuntimeLicenseKey:@"YOUR_KEYCODE"];
     
    //...    
    return YES;
}
 
@end
using Foundation;
using UIKit;
using SciChart;

namespace XamarinTestingLicensing
{
    // The UIApplicationDelegate for the application. This class is responsible for launching the
    // User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
    [Register("AppDelegate")]
    public class AppDelegate : UIApplicationDelegate
    {
        // class-level declarations

        public override UIWindow Window
        {
            get;
            set;
        }

        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            SciChart.iOS.Charting.SCIChartSurface.SetRuntimeLicenseKey("YOUR_KEYCODE");

            return true;
        }
    }
}

For Android: do this by calling the static SciChartSurface.SetRuntimeLicenseKey() method in MainActivity or Application.onCreate().

Code samples below:

public class YourApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;

        // Set your license code here to license the SciChart Android Examples app
        // You can get a trial license key from https://www.scichart.com/licensing-scichart-android/
        // Purchased license keys can be viewed at https://www.scichart.com/profile
        //

        try {
            com.scichart.charting.visuals.SciChartSurface.setRuntimeLicenseKey("YOUR_KEYCODE");
        } catch (Exception e) {
            Log.e("SciChart", "Error when setting the license", e);
        }
    }
}
// The main activity for the application
class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        // Set your license code here to license the SciChart Android Examples app
        // You can get a trial license key from https://www.scichart.com/licensing-scichart-android/
        // Purchased license keys can be viewed at https://www.scichart.com/profile
        //

        try {
            com.scichart.charting.visuals.SciChartSurface.setRuntimeLicenseKey("YOUR_KEYCODE")
        } catch (e: Exception) {
            Log.e("SciChart", "Error when setting the license", e)
        }
    }
}
public class MainActivity : ListActivity
{
    protected override void OnCreate(Bundle bundle)
    {
        base.OnCreate(bundle);
    SciChart.Charting.Visuals.SciChartSurface.SetRuntimeLicenseKey(@"YOUR_KEYCODE");
 
           // .. 
    }
}

Extending your WPF SciChart Trial (v3.2 or to v5.4)

Step 1: Extending the Trial with the Licensing Wizard

If you have requested a trial extension from us, you can use the Licensing Wizard to install the trial key.

  1. Windows Start Menu -> Type SciChart Licensing Wizard -> Start the Wizard
  2. Select ‘I would like to enter a license Offline’
  3. Enter the Trial XML Key into the box ‘2: Enter your license code here’
  4. Click ‘Activate to apply the license’
Extending a Trial License for SciChart
Extending a Trial License for SciChart

Step 2: Include Runtime License

If you wish to run your application on another PC, you should also include the same Trial License in C# code using the SciChartSurface.SetRuntimeLicenseKey() method.

The best place to include the Runtime License is in the constructor of App.xaml.cs, e.g.

    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
            // Ensure SetLicenseKey is called once, before any SciChartSurface instance is created 
            // Check this code into your version-control and it will enable SciChart 
            // for end-users of your application. 
            // 
            // You can test the Runtime Key is installed correctly by Running your application 
            // OUTSIDE Of Visual Studio (no debugger attached). Trial watermarks should be removed. 
            SciChartSurface.SetRuntimeLicenseKey(@"<LicenseContract>
              <Customer>My Company</Customer>
              <OrderId>123-456</OrderId>
              <LicenseCount>1</LicenseCount>
              <IsTrialLicense>false</IsTrialLicense>
              <SupportExpires>07/06/2013 00:00:00</SupportExpires>
              <KeyCode>ABCDEFG</KeyCode>
            </LicenseContract>");
        }
    }

Note* After purchasing, the Your Runtime License should be replaced with the one found in the License Certificate Email.

< Back to Licensing SciChart