Windows10 Dev Connected Experience - Windows 10 Development

What is Windows10 Dev Connected Experience?

As we previously know, in Windows 10 we can make an application which can be performed and run on multiple Windows 10 devices. Let us assume that we have these altered devices and we want to make it feel like that it is one application even though it is running on different devices.

In the Universal Windows Platform (UWP), you can run a single application on all Windows 10 devices, and you can give the user a feeling that it is one application. This is known as connecting experience.

Important features of connected experience −

  • Windows 10 is the first step to an era of more individual computing where your apps, services and content can move with you across devices, flawlessly and easily.
  • With linked practice, you can easily share your data and personal settings related to that application and it will be available on all devices.

In this chapter we will learn −

  • Where these shared data or settings will be stored so that it can be available on your devices for that one application.
  • How the user is identified; that it is the same user which is using the same application on different devices.
  • Windows 10 takes a bold step forward. When you login to Windows 10 with either Microsoft account (MSA) or with your enterprise or (work) account, it is assumed that −

You have free access to OneDrive for MSA account, and you have access to Active Directory (AD) and Azure Active Directory (AAD), which is a cloud version with your enterprise account.

  • You have access to different applications and resources.
  • The Devices and applications are in roaming state and settings.

windows_10_devices
Roaming in Windows 10

You set some preferences like lock screen or background color or initial your dissimilar kinds of settings, when you logon to a PC. If you have more than one computer or device, which are running on Windows 10, your favorites and settings on one device will be matched from cloud, when you login to other devices with the same account.

In Windows 10, when you have set or personalized your application settings, then these settings will roam with Roaming APIs obtainable in UWP. When you run the same application again on other device, then it will first recover the settings and relate those settings to the application on that device.

personalized_settings

There is a boundary of 100KB for uploading roaming data to the cloud. If this limit surpasses, then synchronization will stop and will just behave like a local folder.

The RoamingSettings APIs are exposed as dictionary in which an application can save data.

When the data changes in RoamingSettings then it fires the DataChangedevent, where you can refresh your settings.

Let us look at an instance, in which we will set the background color of the application and these settings will roam with Roaming APIs available in UWP.
Given below is the XAML code in which different controls are added.


C# implementation for RoamingSettings and different events is given below.

When the above code is compiled and executed, you will see the resulting window.

content_experience_execution

Let us select gray color as the background color and close this app.

Currently, when you run this app on this device or any other device, you will understand that the background color has altered to gray. This shows that the app has positively recovered the information of background color change in RoamingSettings.

content_experience_demo

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Windows 10 Development Topics