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
WinJS version 2.1 Available for to Develop Windows Phone 8.1 Apps

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.





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



Featured Stories


NIKKE 3.5 anniversary update livestream coming soon
NIKKE 3.5 anniversary update livestream coming soon Friday, April 17, 2026


New AI tool targets early dementia detection
New AI tool targets early dementia detection Thursday, April 16, 2026


Jentic launch gives AI agents api access
Jentic launch gives AI agents api access Wednesday, April 15, 2026




Experts warn ai-generated health content risks misinterpretation without human oversight
Experts warn ai-generated health content risks misinterpretation without human oversight Wednesday, April 15, 2026


Ludo.ai Unveils API and MCP Beta to Power AI Game Asset Pipelines
Ludo.ai Unveils API and MCP Beta to Power AI Game Asset Pipelines Tuesday, April 14, 2026


AccuWeather Launches ChatGPT Integration for Live Weather Updates
AccuWeather Launches ChatGPT Integration for Live Weather Updates Tuesday, April 14, 2026


Stop Using Business Jargon: 5 Ways Buzzwords Damage Job Performance
Stop Using Business Jargon: 5 Ways Buzzwords Damage Job Performance Tuesday, April 14, 2026


IT spending rises as banks balance legacy and innovation
IT spending rises as banks balance legacy and innovation Monday, April 13, 2026


Tech hiring slumps as Software Developer job postings fall
Tech hiring slumps as Software Developer job postings fall Monday, April 13, 2026


AI is becoming more widespread in collaboration tools
AI is becoming more widespread in collaboration tools Thursday, April 9, 2026


Stay Updated

Sign up for our newsletter for the headlines delivered to you

SuccessFull SignUp

Get More App News



/sites/themes/prod/assets/js/less.js"> ' ' %>