Click here to Skip to main content
15,916,019 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I cannot add my custom control dll to windows forms application (4.5 framework) which was created by using silverlight design. If i'm going to add my controls means, they are unavailable & hidden(not active).

Please give me a solution..
Posted

1 solution

A .NET Forms application uses a completely different run time then what Silverlight uses. The two run times are not interoperable. You do have a few options however but they may not be the solution you are looking for.

First option, convert your Sliverlight user controls into Windows Form controls.

Second option, create parallel Silverlight and Forms controls and use link files to keep core logic in a single file. This is messy, I've personally done this in the past and it caused a lot of headaches amongst developers that didn't understand how to use link files.

Share code with Add as Link[^]

Your third option would to take a look at out-of-browser support for Silverlight. You can run a Silverlight application without using browser so you have the appearance of a desktop application.

Out-of-browser Support[^]

A possible fourth option would be to switch to WPF. The XAML and libraries used in WPF and Silverlight are very similar and migrating code between the two technologies, for the most part, is painless.

Hope this helps you out.
 
Share this answer
 
Comments
Sathish km 11-Aug-15 8:42am    
thk for ur reply..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900