XAML.io provides “Migrate from WPF”: run an present WPF software on the net


Paris, France —  Userware immediately launched model 0.8 of XAML.io, the free web-based .NET IDE, including Migrate from WPF: free, in-browser instruments that carry an present Home windows Presentation Basis (WPF) software to the online. Builders can analyze a compiled WPF app for internet compatibility, import a WPF mission to run it within the browser, or interact Userware for an end-to-end migration. The know-how is powered by OpenSilver, Userware’s open-source framework that runs WPF-style C# and XAML on the net by compiling to WebAssembly and rendering XAML as actual HTML DOM components.

To indicate how little of an software sometimes modifications, Userware migrated Household.Present, the superior WPF reference software Vertigo initially constructed for Microsoft quickly after WPF launched. The outcome runs dwell within the browser, with 97% of the unique code unchanged, a determine measured as a line-by-line diff of the C# and XAML information between the unique and migrated codebases:

Determine 1 – Aspect-by-side screenshots of Household.Present, a complicated WPF reference app, working as a local Home windows desktop app (left) and as an online app within the browser through XAML.io/OpenSilver (proper). 97% of the unique code is unchanged.

WPF is a mature, highly effective framework for Home windows desktop growth, and it isn’t going anyplace. What pushes groups to place these functions on the net is how they get delivered, secured, and accessed. In the present day a WPF software must be put in and stored updated on each person’s machine. On the net, that per-machine set up disappears: IT deploys as soon as and ships updates to everybody in a single click on, so nobody is left working an outdated model.

Safety modifications too. The app runs contained in the browser’s sandbox, the identical mannequin organizations already belief for each web site they use. Nothing is put in on the endpoint, and the app has no standing entry to the person’s machine.

Attain modifications as nicely. Customers can open the app from any machine with a browser (desktop, pill, or telephone), and the identical C#/XAML codebase may ship as desktop and cellular apps. And since OpenSilver renders the interface as commonplace HTML slightly than portray it onto a canvas, migrated apps achieve browser-native accessibility (a basis for requirements similar to Part 508 and EN 301 549), textual content search, and integration with the remainder of the online.

Migration with out a rewrite

XAML.io’s new migration instruments are constructed to ship these advantages with out a rewrite, and the work begins with evaluation. The brand new free Compatibility Analyzer works for an software of any measurement. It reads the compiled software, identifies the WPF and platform APIs the app makes use of, and experiences, function by function, what runs on OpenSilver immediately, what wants adaptation, and what’s blocking, with an exportable report. The app’s binaries are processed domestically within the browser; solely an aggregated listing of unsupported options is shipped to Userware’s server to generate the report.

The migration strategy is intentionally not an AI rewrite. Relatively than regenerating code, XAML.io preserves the unique C# and XAML and makes the framework help it, making use of solely small, seen modifications a developer can evaluation: unsupported C# is wrapped in compiler directives, unsupported XAML is annotated with feedback, and each automated edit is surfaced within the IDE as a warning. A runtime alert system goes additional, flagging stubbed or disabled code as the appliance runs, with the precise file and line, and with out crashing it. The compatibility layer behind the tooling presently ships 8 Roslyn analyzers and 16 automated code fixes, and its WPF protection retains increasing.

The app additionally seems to be the identical after it strikes to the online. On import, XAML.io routinely applies a WPF look-alike theme so the online model matches the desktop authentic; groups that discover the basic WPF look dated can swap to a contemporary theme and add responsive layouts to refresh the interface, with out rewriting the appliance.

The complete Household.Present migration is printed, so anybody can verify the declare as an alternative of taking an adjective for it: examine the dwell migrated app, its supply on XAML.io, and the authentic WPF supply aspect by aspect. The migrated model can also be comparatively mild for what it’s: the working app, together with the complete .NET runtime, is 8.1 MB compressed, and since OpenSilver wants no browser plugin, there may be nothing for the person to put in. Served from a CDN, it hundreds in just a few seconds on a very good connection and is then cached for subsequent visits; runtime efficiency for an app of this type is stable. A brief video of the end-to-end migration is within the launch write-up.

“WPF isn’t going anyplace on the desktop. However quite a lot of these apps now have to dwell on the net too. Meaning reachable from any machine, centrally up to date, and working contained in the browser’s safety sandbox as an alternative of with full entry to every person’s machine, with the accessibility and auditability the desktop by no means gave them,” mentioned Giovanni Albani, CEO of Userware. “What’s at all times made that painful is that it meant a rewrite, and that’s precisely what we take away. We hold your authentic C# and XAML and make the framework help what your app already does, so that you keep away from regressions and hold a codebase your crew nonetheless understands.”

“For a severe software, the sincere reply is that the migration is a mission, and that’s precisely what we do,” mentioned Darshin Vyas, VP of Gross sales at Userware. “It begins with a free compatibility evaluation and a fixed-cost quote. We ship in milestones you possibly can compile and take a look at, and your crew can hold working the entire time. We’ve accomplished this for greater than 13 years, on over ten million traces of enterprise code.”

The self-serve instruments are utterly free, with no time restrict or function paywall. The Compatibility Analyzer is powerful for apps of any measurement, whereas in-browser supply import is presently a Expertise Preview greatest suited to small to mid-size, self-contained tasks. For manufacturing migrations of any measurement, Userware presents non-compulsory skilled providers and help, and prospects can sponsor the precise WPF options they want, which then ship to everybody within the open-source framework. That mannequin is what funds the free tooling. Third-party UI management suites will not be but supported within the self-serve instruments and are dealt with inside managed migrations. Userware’s roadmap consists of broadening WPF protection, one-click internet publishing, cellular and signed desktop publishing, and VB.NET help.

XAML.io is obtainable now, free to make use of and runs in any fashionable browser.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles