Last post May 08, 2018 07:07 PM by HareRama
May 07, 2018 02:27 PM|HareRama|LINK
I have a C#.NET Windows Application (.NET 4.0) that has an WPF control instance of "System.Windows.Forms.Integration.ElementHost". Now, i am supposed to convert this windows based application to a ASP.NET Web Application (.NET 4.0).
As the windows application can't be converted/migrated to web directly, i am rewriting the it as a Web App. Here i am not able to find the said control in the tools box with default settings. When setting are modified to show all tools this controls, and
this control is visible but it is disabled and cannot be added to the web page/form.
Can anyone please help on this? Any insight on this would be very helpful. Thank you so much.
May 07, 2018 02:49 PM|PatriceSc|LINK
It's just to host a control. You'll have to see which control was shown inside this "ElementHost" and replace that with some HTML markup. If used at multiple places you have also the same concepts so that you can reuse easily the same "control" (which render
HTML markup) at multiple places.
Windows Forms or WPF has nothing to do with how a web UI works so unless you were showing already an HTML view inside your desktop app, you have really to rewrite all the UI part from scratch.
May 08, 2018 07:07 PM|HareRama|LINK
thank you for your help. It helped to look in the right direction.