How does third-party component licensing work in WPF?

In WinForms, the entire licensing scheme in .NET revolves around LicenseManager and LicenseProvider , as mentioned quite well in this article .

I have a simple test form in WinForm (the licensed DevExpress ButtonEdit fell there) using the code below. I see that he receives the license information in the order:

var license = LicenseManager.Validate(typeof(ButtonEdit), this);

I also see that it has an automatically generated license.licx file and is added to my project.

So, I tried to do the same, dropping the DevExpress / Telerik WPF controls into my sample WPF window, and I see that the license.licx file is NOT automatically generated.

So, if I try to run the same line in WPF, license returns null. This means that it does not use the entire LicenseManager architecture in WPF.

What does he use to check the license for a third-party component?

It looks like someone has reported an error in VS 2010 regarding this , but I am using VS2010.

+6
source share
2 answers

WPF also uses the same mechanism. You just need to apply the LicenseProvider attribute to your class.

The licx file could not be generated in your project for any other reason.

+1
source

It just turned out that one of the third-party controls (Telerik) that I used for testing works without license keys (go to the section "How do you license a developer license?").

Check out DevExpress and raised a support ticket on Telerik, and they confirmed that they are not using licx for WPF controls.

+1
source

Source: https://habr.com/ru/post/915972/


All Articles