1. https://appdevelopermagazine.com/windows-mobile
  2. https://appdevelopermagazine.com/winjs-version-2.1-available-for-to-develop-windows-phone-8.1-apps/
4/23/2014 9:09:15 AM
WinJS version 2.1 Available for to Develop Windows Phone 8.1 Apps
Windows Phone development, WinJS 2.1, Visual Studio, port app
/winjs_31t70u3b.jpg
App Developer Magazine

Windows Mobile

WinJS version 2.1 Available for to Develop Windows Phone 8.1 Apps


Wednesday, April 23, 2014

Stuart Parkerson Stuart Parkerson


Microsoft has announced that WinJS is now available on Windows Phone. WinJS 2.1 tailors the features of WinJS 2.0 (for Windows Apps) to fit the Windows Phone experience. The company has added new controls and new capabilities unique to Windows Phone without sacrificing performance on low-end form factors.

Porting existing Windows Store apps is simple using the same languages and technologies to share resources between Windows and Windows Phone apps. Source code, images, localization and other data are placed in one central location which reduces the cost and effort of creating two separate, platform-specific apps. 

Visual Studio provides three sets of templates: Windows Apps, Windows Phone Apps, and Universal Apps. While the first two will specifically target each form factor, with the third developers can write once and still cater to both and build native apps across both platforms.

Windows Phone possesses a different model of app interaction than would normally be seen on a PC or tablet device. Its user interface uses controls which did not currently exist in WinJS 2.0 so in WinJS 2.1 Pivot control was introduced.

The full-screen container provides a quick way to navigate between different views. Those familiar with the Hub control will recognize the similarities both in its visual appearance and in its API. It is even possible to find and replace the API names between the Hub and Pivot controls for most cases. 

The Adaptive controls phone form factor introduces many challenges that may cause developers to rethink the way an app looks and feels. A Windows device accommodates a vast array of screen sizes, ranging from small tablets to large monitors, whereas a Windows Phone device generally does not exceed five or six inches. Additionally, a Windows device may have a variety of input methods, including mouse and keyboard, whereas a Windows Phone device will use touch exclusively.

Microsoft has worked to minimize the work that is needed for an app to adapt across all devices, which typically amounts to minor adjustments in layout and visuals. WinJS automatically adapts its controls to match the Phone’s overall user interface and personality, so the majority of markup will remain the same.

Style sheets have also been updated to complement the new design paradigms, with controls matching the Phone experience right out of the box. Developers can take advantage of the device’s customization options and have an app match the user theme or accent coloring.

While the Phone introduces new controls that do not exist on Windows, there are some Windows controls that do not fit the overall design on Phone. Flyout, Menu, NavBar, SearchBox, SettingsFlyout, and Tooltip do not make sense in a Windows Phone app. Likewise, BackButton is no longer needed, as there is now a back button built into the hardware. Consequently, these controls are not available in WinJS 2.1.

There are mitigations available for each unsupported control. The WinJS API changes for Windows Phone 8.1 overview offers a complete list of API deprecations, functional changes, and optimizations.

The HTML platform on Windows Phone does not support a few HTML elements that are supported on Windows. These are the context menu, message dialog, and simple tooltip. Similarly, the file upload and progress ring controls work, but are not officially supported.

Adopting WinJS 2.1 in a Windows Phone app should feel seamless and familiar as previous work done in a Windows Store app with WinJS 2.0. The primary differences between versions are all about the controls, as befits the deltas between the Windows Phone and Windows user interfaces. Beyond that, the core capabilities and utilities of WinJS are identical, streamlining the development of universal apps for Windows to reach customers across devices.



WinJS version 2.1 Available for to Develop Windows Phone 8.1 Apps




Read more: http://blogs.windows.com/windows/b/buildingapps/ar...




Subscribe to App Developer Magazine

Become a subscriber of App Developer Magazine for just $5.99 a month and take advantage of all these perks.

MEMBERS GET ACCESS TO

  • - Exclusive content from leaders in the industry
  • - Q&A articles from industry leaders
  • - Tips and tricks from the most successful developers weekly
  • - Monthly issues, including all 90+ back-issues since 2012
  • - Event discounts and early-bird signups
  • - Gain insight from top achievers in the app store
  • - Learn what tools to use, what SDK's to use, and more

    Subscribe here



Stay Updated

Sign up for our newsletter for the headlines delivered to you

SuccessFull SignUp

Featured Stories


FTC AI accuracy policy puts chatbot trust under review
FTC AI accuracy policy puts chatbot trust under review Tuesday, July 21, 2026




Human-Made Video Ads Outperform AI-Generated Creativity
Human-Made Video Ads Outperform AI-Generated Creativity Monday, July 20, 2026


SpaceX accelerates AI push with new hires
SpaceX accelerates AI push with new hires Monday, July 20, 2026


NearLens: Smart Glasses Privacy Taken Seriously
NearLens: Smart Glasses Privacy Taken Seriously Wednesday, July 15, 2026


Agentic Commerce Grows Cequence Unveils AI-Era Bot Defense
Agentic Commerce Grows Cequence Unveils AI-Era Bot Defense Wednesday, July 15, 2026


Nearly all developers use AI but few secure the code it generates
Nearly all developers use AI but few secure the code it generates Monday, July 13, 2026


Enviromates new browser launches
Enviromates new browser launches Monday, July 6, 2026


AI Executive Order aims to balance security and innovation
AI Executive Order aims to balance security and innovation Monday, June 29, 2026


Top manufacturing trends for 2026
Top manufacturing trends for 2026 Tuesday, June 23, 2026


API scoring tool shows if your API is ready for AI
API scoring tool shows if your API is ready for AI Monday, June 22, 2026


Get More App News