There are 2 possible licensing scenarios:
1. Using the default 45-day trial mode.
All features are available and can be evaluated for a 45-day period, after which an exception will be thrown. To use this mode, no license key is required.
2. Licensing the component (key starts with DGP)
Xceed DataGrid for WPF license keys permanently unlock the component's complete feature set.
Xceed 3D Views for WPF, which does not include the 2D table and card views, is licensed in the same manner as Xceed DataGrid for WPF; however, rather than using a "DGP" license key, a "TDV" key must be used.
Once the references to the assemblies have been added to your project, the LicenseKey property of the Licenser class must be set in order to register your Xceed component for runtime use. If a license key is not set, the component will function in trial mode for 45-days on your development machine only.
The LicenseKey property of the Licenser class must be set with a valid license key, before any other method of your Xceed component is called. If you use an invalid license key, expired trial key, or license it in the wrong place in your code, an exception will be thrown at runtime.
It is recommended that the LicenseKey property be set in one of the following locations:
Location | Description |
---|---|
Application.OnStartup method | Preferred location. |
Window.Loaded or Page.Loaded events | The LicenseKey property can be set in this event as long as the startup page or windows is known and invariable. |
VB.NET |
Copy Code |
---|---|
Protected Overrides Sub OnStartup( e As StartupEventArgs ) Xceed.Wpf.DataGrid.Licenser.LicenseKey = "place your license key here!" MyBase.OnStartup( e ) End Sub |
C# |
Copy Code |
---|---|
protected override void OnStartup( StartupEventArgs e ) { Xceed.Wpf.DataGrid.Licenser.LicenseKey = "place your license key here!"; base.OnStartup( e ); } |