Licensing Information > Common Licensing Scenarios > Inheriting from licensed components |
If a component that inherits from a licensed component is created, the licensing information to be stored in the form is still needed. This can be done in two ways, discussed as follows:
[LicenseProvider(typeof(LicenseProvider))]
class MyGrid: C1.WPF.FlexGrid.C1FlexGrid
{
// ...
}
Please note that ComponentOne licensing will not accept a run-time license for a derived control if the run-time license is embedded in the same assembly as the derived class definition and the assembly is a DLL. This restriction is necessary to prevent a derived control class assembly from being used in other applications without a design-time license. If you create such an assembly, you will need to take one of the actions previously described in Creating components at run time.