Windows 10 calculator web

Microsoft recently open-sourced Windows 10’s built-in Calculator app and published the source code, build system on Github. Microsoft also stated that it wants to work with the community and develop new features for the Calculator app.

As the Calculator app has been open-sourced, independent developers can prototype new features that could become part of Windows 10 at some point.

Windows 10 Calculator app has now been ported to Web, Android and iOS by the developers of Uno Platform, an open source cross-platform that allows UWP based code to run on non-Windows platforms.

In a blog post, Uno says that Windows Calculator isĀ built entirely using standard C++ 11 and C++/CX. It uses a calculation engine from 1995.

To run Calculator on non-Windows 10 platforms, some parts of the code were needed to be translated to C# and other parts were adjusted to be compliant with clang’s C++ 11 support.

It is apparently not easy to port a full-featured Windows 10 Calculator app to Android and iOS. The developers met with the following challenges:

  • Adjusing the C++ of the Calculation Engine
  • Native Code Interop Specifics
  • Converting the C++/CX code to C#
  • Converting the XAML
  • Localization Resources
  • Mono for WebAssembly Dynamic and Static Linking Support
  • The C adaptation layer
  • The case of C++ to C# callbacks

The very early versions of ported Calculator app is available on Android, iOS and you can also try it in your web browser from here.

About The Author

Mayank Parmar

Mayank Parmar is an entrepreneur who founded Windows Latest. He is the Editor-in-Chief and has written on various topics in his seven years of career, but he is mostly known for his well-researched work on Microsoft's Windows. His articles and research works have been referred to by CNN, Business Insiders, Forbes, Fortune, CBS Interactive, Microsoft and many others over the years.