Welcome!

Silverlight Authors: Yeshim Deniz, Greg O'Connor, Trevor Parsons, Sandi Mappic, Liz McMillan

Related Topics: .NET, Silverlight, Apache

.NET: Blog Post

The Road to Windows 8 Development Success

Key Tenets and Skills

Did you spend the weekend getting to know your Surface – like many of those who lined up at Microsoft Stores across the country?

And now you’re considering getting your own application into the Windows Store, but not sure where to begin?

Well, we all started somewhere, and although I’m far from laying claim to a Windows 8 app with thousands of downloads, over the past few months of working with developers as well as on my own, I’ve settled on my own shortlist of things to know about Windows 8 development that are I feel are keys to future success.

Read the store certification requirements, then read them again.

For your application to be in the Windows Store, it must pass certification which comprises a set of security, technical, and content compliance tests. Simply leaving a debug statement in your code or forgetting to provide a privacy policy for your application can result in rejection. Before you submit your app you’ll definitely want to make sure it passes the Windows Application Certification Kit on your own device. Take a look as well at Resolving certification errors to avoid common issues and the resulting delay in getting your application on the market.

User experience matters.

Windows Store applications are different. They look different and act differently from what many of us have previously built on the Windows platform – whether it be Windows Forms, WPF, Silverlight or ASP.NET. It’s not just a matter of translating user interface elements or applying a new theme or skin. Successful Windows 8 applications will embrace the modern Windows application design, which have been influenced by movements like the Swiss Style and Bauhaus. Take time to embrace the Windows 8 design principles, and eschew skeumorphism!.

When it comes to crafting that user experience, there are many different avenues available: XAML (with Visual Basic, C#, and C++), DirectX with C++, and CSS with HTML5 and JavaScript. The more adept you are with those rendering technologies, the more compelling your app will be. In that journey, you’ll likely find yourself gravitating more and more to the incredible functionality of Blend for Visual Studio.

For building games, even more options abound, including multiple JavaScript libraries like ImpactJS and EaselJS and offerings like GameSalad and Construct 2. Full-featured game engines like Unreal Engine 3 and Unity have also announced support for Windows 8.

Embrace the MVVM pattern.

Windows 8 applications typically consist of just a few (or perhaps even just one) page, with controls and data-binding governing much of the experience. The Model-View-ViewModel design pattern (which is a close cousin of Presentation Model, Model-View-Presenter and Model-View-Controller) has quickly become the de facto model for XAML based application development, whether it be Silverlight, WPF, or Windows 8. For HTML5/JS applications, data-binding is also a key facet; however, since two-way binding is not explicitly supported, there can be a bit more work involved when using MVVM.

You’ll find there’s even a DefaultViewModel property for many of the XAML-based Windows 8 project templates to steer you toward this goal.  There are also some excellent blog posts from various authors on the topic, and the MVVM Light Toolkit (from Laurent Bugnion) is a common starting point.

Windows Store applications are mobile applications.

If you’ve built applications for Windows Phone or even iOS or Android, you will be familiar with a focus on providing a consistent, responsive user experience. To guarantee that level of experience regardless of the what is currently running on that device, applications are necessarily constrained. They run within a sandbox with limited access outside of that sandbox (unless authorized by the user), and they have a very distinct lifecycle controlled by the user and the operating system more so than by the developer.

Successful applications built for Windows 8 will be mindful of battery life, provide both a connected and a disconnected experience, work well on low-power devices, and mold the experience to the characteristics of the device on which they are executing thus becoming authentically digital.

Understand the application lifecycle.

Every Windows 8 Store application is bound by the same lifecycle, and it’s incumbent on the developer to understand when state transitions occur and what actions should be taken as a result.

For instance, an application can be activated by clicking on its live tile of course, but it may also be activated through a search or by another application via protocol activation. And as soon that other application is brought into view, the current application is suspended. It’s then up to the developer to save any application state, since a suspended application could be completely terminated by the operating system – with no further notification - should there be memory or battery life pressure.

State diagram showing transitions between app execution states

Asynchrony is the norm.

Windows 8 applications are often characterized in marketing-speak as fast and fluid. The consistency of performance in reaction to user input is a key part of the experience and enforced by strict timing requirements. For instance, applications much launch within five seconds or less and must suspend in two seconds or less.

In fact, any operation that takes more than 200 ms is a prime candidate for an asynchronous implementation, one that does not require the UI to stop and wait for it to complete. This is baked into Windows RT as well since most file and network operations are available only as asynchronous methods.

Luckily asynchronous processing has become that much easier in .NET 4.5, and Visual Basic and C# developers can leverage the async/await pattern, allowing them to code in a synchronous style but with asynchronous methods. JavaScript developers can use promises that similarly abstract the complexities of asynchronous programming. And if you’re a C++ developer, then you’ll be using the task class that’s part of the Concurrency Runtime,

Notifications can be a key application differentiator.

Notifications are a fantastic feature of the Windows 8 platform, one that can take your application from meh to wow. A built-in notification engine can serve up tile, toast, and badge updates to your application even when the application isn’t running - thus expanding its presence and impact in the eyes of your users.

Live tile updatesTile notifications provide the glance-and-go experience that differentiates the Windows 8 Start Screen. Live tiles are the only persistent visual presence of your application on the user’s device, and they are “live” solely because of notifications, providing updates to your application and enticing the user to run your app again and again.

Toast notifications are more personalized and immediate, informing the user of something of specific interest that’s actionable right at that time. Used appropriately they can provide a compelling, just-in-time experience and be part of an application the user just can’t do with out.

Lastly, badges are essentially an extension of the tile, providing a quick indication of the state of an application, like whether a video has been paused or how many unread e-mails are in your in-box.

Leverage contracts and extensions to broaden your application’s presence.

The sandbox model of a Windows Store application at first seems incredibly constraining – you can’t write to the file system, can’t read from the registry, can’t even detect what version of Windows is currently running! If you step back and view things from an end-user perspective though, you’ll realize that many of those capabilities serve the developer and not the user. In Windows 8 the user is in charge, and a consistent experience is paramount.

In some ways it’s liberating and democratizing for developers, there are defined rules – contracts, if you will – that every application has access to and no application can circumvent.

  • Want to save a file to C:\ directly? Your application can, but the user must approve that action through the file picker.
  • Want to have your application automatically handle a certain type of file? You can, but via file activation, and even then the user gets to pick which application she wants to response to that request (from among installed applications than can handle that file type).
  • Want to search across data managed by other applications? You can - via the search contract.

It’s through these contracts and extensions that your users’ experience can extend beyond the boundaries of your own application and your application can reach new users through discovery mechanisms built-in to the Windows 8 runtime.

The Cloud is a unifier.

Does anyone have only one internet connected device in this day and age? We have smartphones, laptops, desktops, game consoles, etc., many of which run similar or companion applications, and increasingly we expect our experiences to transcend the device. We watch a movie on our slate or phone during the commute on the train and expect to finish that movie at home on our Xbox. We increasingly rely on apps like OneNote and Evernote to make our to-do list available wherever we happen to be at the time.

Underlying the connected experiences is the cloud, and within Windows 8 it’s not a bolted-on experience. SkyDrive is a first class citizen, your social media presence on Twitter, Facebook, LinkedIn, Google are linked in the People app, and developers can make use of roaming storage which automatically handles the synchronization of application data across Windows 8 devices linked to a given user’s Microsoft account.

Windows Azure - try free for 90 daysStepping it up a notch, Windows 8 applications can easily tie into Windows Azure Mobile Services for common application needs like simple structured data storage, authentication across identity providers like Facebook and Twitter, and to provide the plumbing for push notifications. Of course you don’t have to stop there, Windows Azure has numerous other services that you can easily tap into to increase the impact, reach, and agility of your application.

Your profits are in your hands.

Having your application in the Windows Store is a tremendous opportunity, with over 670 millions upgradeable licenses of Windows 7 in the wild now and an estimated 300 million units of Windows 8 shipping in 2013, so take some time to decide how to monetize your application, as there are several options you can use alone or in combination.

  • You can simply charge for your application (anywhere from $1.49 to $999.99), where each download is a purchase and you retain 70% of the proceeds (or 80% once you’ve reached the $25,000 mark). Optionally, you can opt to enable a time-limited or feature-limited trial as part of your application, which can significantly increase your purchase rate over an application without such an option.
  • You might decide not to charge for the app at all and make your money from ads presented within your application via the Microsoft Advertising SDK or a third-party ad provider. By the way, according to a 2011 Gartner report, mobile advertising revenue is slated to reach $20.6 billion 2015, up from $3.3 billion in 2011.
  • Increasingly, applications are turning to in-app purchases as a primary monetization technique either using the built-in Windows.ApplicationModel.Store namespace or a third-party commerce provider. As food for thought, in July 2011 Distimo noted that although only 4% of all iPhone applications leveraged in-app purchases, those purchases accounted for 72% of all application revenue, a 150% increase over the prior year. That same report also showed that free downloads of applications exceeded those of paid applications by a factor of five.

Before settling on your approach, do take time to review other apps in your category and the monetization trends for those applications. Different types of applications engender different expectations on the part of end users. For example, statistics from the Windows Phone store indicate that consumers are more likely to pay for games than for any other category of applications, by a factor of six.

In conclusion, I wish you good luck on your Windows 8 development journey, and I welcome your thoughts, stories, and feedback!

More Stories By Jim O'Neil

Jim is a Technology Evangelist for Microsoft who covers the Northeast District, namely, New England and upstate New York. He is focused on engaging with the development community in the area through user groups, code camps, BarCamps, Microsoft-sponsored events, etc., and just in general serve as ambassador for Microsoft. Since 2009, Jim has been focusing on software development scenarios using cloud computing and Windows Azure. You can follow Jim on Twitter at @jimoneil

@ThingsExpo Stories
SYS-CON Events announced today that Windstream, a leading provider of advanced network and cloud communications, has been named “Silver Sponsor” of SYS-CON's 16th International Cloud Expo®, which will take place on June 9–11, 2015, at the Javits Center in New York, NY. Windstream (Nasdaq: WIN), a FORTUNE 500 and S&P 500 company, is a leading provider of advanced network communications, including cloud computing and managed services, to businesses nationwide. The company also offers broadband, phone and digital TV services to consumers primarily in rural areas.
“In the past year we've seen a lot of stabilization of WebRTC. You can now use it in production with a far greater degree of certainty. A lot of the real developments in the past year have been in things like the data channel, which will enable a whole new type of application," explained Peter Dunkley, Technical Director at Acision, in this SYS-CON.tv interview at @ThingsExpo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
DevOps Summit 2015 New York, co-located with the 16th International Cloud Expo - to be held June 9-11, 2015, at the Javits Center in New York City, NY - announces that it is now accepting Keynote Proposals. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait for long development cycles that produce software that is obsolete at launch. DevOps may be disruptive, but it is essential.
The major cloud platforms defy a simple, side-by-side analysis. Each of the major IaaS public-cloud platforms offers their own unique strengths and functionality. Options for on-site private cloud are diverse as well, and must be designed and deployed while taking existing legacy architecture and infrastructure into account. Then the reality is that most enterprises are embarking on a hybrid cloud strategy and programs. In this Power Panel at 15th Cloud Expo (http://www.CloudComputingExpo.com), moderated by Ashar Baig, Research Director, Cloud, at Gigaom Research, Nate Gordon, Director of T...
The Internet of Things is not new. Historically, smart businesses have used its basic concept of leveraging data to drive better decision making and have capitalized on those insights to realize additional revenue opportunities. So, what has changed to make the Internet of Things one of the hottest topics in tech? In his session at @ThingsExpo, Chris Gray, Director, Embedded and Internet of Things, discussed the underlying factors that are driving the economics of intelligent systems. Discover how hardware commoditization, the ubiquitous nature of connectivity, and the emergence of Big Data a...
"BSQUARE is in the business of selling software solutions for smart connected devices. It's obvious that IoT has moved from being a technology to being a fundamental part of business, and in the last 18 months people have said let's figure out how to do it and let's put some focus on it, " explained Dave Wagstaff, VP & Chief Architect, at BSQUARE Corporation, in this SYS-CON.tv interview at @ThingsExpo, held Nov 4-6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.

ARMONK, N.Y., Nov. 20, 2014 /PRNewswire/ --  IBM (NYSE: IBM) today announced that it is bringing a greater level of control, security and flexibility to cloud-based application development and delivery with a single-tenant version of Bluemix, IBM's platform-as-a-service. The new platform enables developers to build ap...

SYS-CON Events announced today that IDenticard will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. IDenticard™ is the security division of Brady Corp (NYSE: BRC), a $1.5 billion manufacturer of identification products. We have small-company values with the strength and stability of a major corporation. IDenticard offers local sales, support and service to our customers across the United States and Canada. Our partner network encompasses some 300 of the world's leading systems integrators and security s...
"People are a lot more knowledgeable about APIs now. There are two types of people who work with APIs - IT people who want to use APIs for something internal and the product managers who want to do something outside APIs for people to connect to them," explained Roberto Medrano, Executive Vice President at SOA Software, in this SYS-CON.tv interview at Cloud Expo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
Nigeria has the largest economy in Africa, at more than US$500 billion, and ranks 23rd in the world. A recent re-evaluation of Nigeria's true economic size doubled the previous estimate, and brought it well ahead of South Africa, which is a member (unlike Nigeria) of the G20 club for political as well as economic reasons. Nigeria's economy can be said to be quite diverse from one point of view, but heavily dependent on oil and gas at the same time. Oil and natural gas account for about 15% of Nigera's overall economy, but traditionally represent more than 90% of the country's exports and as...
The Internet of Things is a misnomer. That implies that everything is on the Internet, and that simply should not be - especially for things that are blurring the line between medical devices that stimulate like a pacemaker and quantified self-sensors like a pedometer or pulse tracker. The mesh of things that we manage must be segmented into zones of trust for sensing data, transmitting data, receiving command and control administrative changes, and peer-to-peer mesh messaging. In his session at @ThingsExpo, Ryan Bagnulo, Solution Architect / Software Engineer at SOA Software, focused on desi...
"At our booth we are showing how to provide trust in the Internet of Things. Trust is where everything starts to become secure and trustworthy. Now with the scaling of the Internet of Things it becomes an interesting question – I've heard numbers from 200 billion devices next year up to a trillion in the next 10 to 15 years," explained Johannes Lintzen, Vice President of Sales at Utimaco, in this SYS-CON.tv interview at @ThingsExpo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
"For over 25 years we have been working with a lot of enterprise customers and we have seen how companies create applications. And now that we have moved to cloud computing, mobile, social and the Internet of Things, we see that the market needs a new way of creating applications," stated Jesse Shiah, CEO, President and Co-Founder of AgilePoint Inc., in this SYS-CON.tv interview at 15th Cloud Expo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that Gridstore™, the leader in hyper-converged infrastructure purpose-built to optimize Microsoft workloads, will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. Gridstore™ is the leader in hyper-converged infrastructure purpose-built for Microsoft workloads and designed to accelerate applications in virtualized environments. Gridstore’s hyper-converged infrastructure is the industry’s first all flash version of HyperConverged Appliances that include both compute and storag...
Today’s enterprise is being driven by disruptive competitive and human capital requirements to provide enterprise application access through not only desktops, but also mobile devices. To retrofit existing programs across all these devices using traditional programming methods is very costly and time consuming – often prohibitively so. In his session at @ThingsExpo, Jesse Shiah, CEO, President, and Co-Founder of AgilePoint Inc., discussed how you can create applications that run on all mobile devices as well as laptops and desktops using a visual drag-and-drop application – and eForms-buildi...
We certainly live in interesting technological times. And no more interesting than the current competing IoT standards for connectivity. Various standards bodies, approaches, and ecosystems are vying for mindshare and positioning for a competitive edge. It is clear that when the dust settles, we will have new protocols, evolved protocols, that will change the way we interact with devices and infrastructure. We will also have evolved web protocols, like HTTP/2, that will be changing the very core of our infrastructures. At the same time, we have old approaches made new again like micro-services...
Code Halos - aka "digital fingerprints" - are the key organizing principle to understand a) how dumb things become smart and b) how to monetize this dynamic. In his session at @ThingsExpo, Robert Brown, AVP, Center for the Future of Work at Cognizant Technology Solutions, outlined research, analysis and recommendations from his recently published book on this phenomena on the way leading edge organizations like GE and Disney are unlocking the Internet of Things opportunity and what steps your organization should be taking to position itself for the next platform of digital competition.
The 3rd International Internet of @ThingsExpo, co-located with the 16th International Cloud Expo - to be held June 9-11, 2015, at the Javits Center in New York City, NY - announces that its Call for Papers is now open. The Internet of Things (IoT) is the biggest idea since the creation of the Worldwide Web more than 20 years ago.
As the Internet of Things unfolds, mobile and wearable devices are blurring the line between physical and digital, integrating ever more closely with our interests, our routines, our daily lives. Contextual computing and smart, sensor-equipped spaces bring the potential to walk through a world that recognizes us and responds accordingly. We become continuous transmitters and receivers of data. In his session at @ThingsExpo, Andrew Bolwell, Director of Innovation for HP's Printing and Personal Systems Group, discussed how key attributes of mobile technology – touch input, sensors, social, and ...
In their session at @ThingsExpo, Shyam Varan Nath, Principal Architect at GE, and Ibrahim Gokcen, who leads GE's advanced IoT analytics, focused on the Internet of Things / Industrial Internet and how to make it operational for business end-users. Learn about the challenges posed by machine and sensor data and how to marry it with enterprise data. They also discussed the tips and tricks to provide the Industrial Internet as an end-user consumable service using Big Data Analytics and Industrial Cloud.