Can you easily turn a WPF application into a WPF XBAP application?

I ask this question here because, looking around the web for answers, I can’t find the answers I'm looking for.

I am wondering if you can easily accept the WPF application that you created to run on the desktop and run it as an XBAP application?

If you can easily do this, is there a resource where I can learn how to do this?

Another question I have regarding XBAP applications in general ... Can they be hosted on a web server somewhere, and then someone accesses it through their browser remotely? Or do I need to create a Silverlight application for this?

Basically, XBAP is accessible remotely or just runs on the local computer, but in the browser (something that I'm not sure is useful)

+4
source share
2 answers

When you start XBAP, you need to decide between full trust and partial trust. Partial trust limits some of the things you are allowed to do (for example, access to local storage, printing, etc.). A full-fledged XBAP can perform the same actions as an application, but there is a huge problem with signing it (it must be signed for users to run it). We (my company) tried to achieve this in order to work last year, but could not do it correctly with self-signed certificates. It turned out to be very difficult, and, in addition, there were no resources available to approach it. Perhaps this has now changed.

It depends on its transformation - you need to exchange several things (for example, the window should be replaced with a page), and the navigation functions are radically different (more like your own web application with history, etc.).

The XBAP application runs in the sandbox on the computer (at least in partial trust), so it loads and runs locally (in the browser). This means that if you do not make some kind of automatic update scheme, it will be used in the old version, the next time the user starts it. If he contacts him from a published place, he will be updated, and the new version will replace the old one.

As for resources - converting is basically a matter of copying an old application to an XBAP application - among other things.

Hope this helps.

+1
source

I searched this answer all over the Internet before I ever got the answer to the question of how to convert a WPF client application to an application based on the XBAP browser? I believe that there is no automatic path, manual work is needed. As described above, changing windows to pages, navigation methods and some code structure.

Answering the second question, WPF applications are complete universals, but you will need to set application limits and trusted police (Full-trust or Partial Trust), database policy, etc.

0
source

All Articles