vitall
vitall

Reputation: 161

Want to run WPF application on Asp.net web application.

I want to run my WPF application on asp.net web application. Actually I have a WPF page.xaml which contain the image viewer, which actually open image and edit it as required. Now I want to embed that in my Asp.net Web application. I have a asp.net web application user control on which I want that WPF stuff. I research on it on the internet, I find a way that we first publish the WPF application on the IIS server and then past the URL in asp.net web application page iframe. as I follow this below link:

http://msdn.microsoft.com/en-us/library/aa970060.aspx#deploying_a_xbap

now I not want to follow this approach. I want an alternate way of this. Is there any way to handle this scenario. If yes then how can we achieve this?

Upvotes: 1

Views: 6865

Answers (2)

hcp
hcp

Reputation: 486

2 years later, a possible answer appears! Maybe someone else will see this and get some use out of it.

I have been hearing rumors that it is possible to run your WPF application in a browser, it's called an XBAP?

https://msdn.microsoft.com/en-us/library/aa970060%28v=vs.110%29.aspx

I am about to give this a try myself, I'll update this answer with any limitations I find.

Upvotes: 1

ppetrov
ppetrov

Reputation: 3105

Yes there's a better way: you can use Silverlight (basically it's a C# equivalent to Flash).

Even if Silverlight is quite the same as WPF, there is some differences due to the fact that silverlight is made for web. So you'll have to make some changes to your application.

About integrating it in your page, it seems quite simple: You can use an object html element (as you would do with Flash) Here are some links about that:

Upvotes: 3

Related Questions