Tag: UWP

Thread.Sleep equivalent in UWP App

If you are looking for an equivanet for Thread.Sleep method in UWP apps , you can use the Task.Delay method instead. The reason for this is that Task.Delay works like a pause method for the asynchronous call.

How to Turnoff Frame rate counter in UWP App ?

You can turn off the frame rate counter in your Universal Windows Platform (UAP) apps by following the below steps. How to Turnoff Frame rate counter in UWP App ? 1. Open your UWP project built using C# and XAML in Visual Studio. 2. From Visual Studio Solution explorer , open App.xaml.cs. 3. Set the DebugSettings.EnableFrameRateCounter property with the false false. as shown below.

Defining URLs in the UWP hosted Web apps

When developing the UWP hosted Web Apps for Windows 10 , you can define the URLs that your hosted web app can include and exclude . Defining URLs in the UWP hosted Web apps You generally define this in the app package manifest file by setting the Application Content URI Rules (ACURs) as shown below.

How to add Items to ListBox control in Xaml ?

You can add the Items to a List Box control in Xaml using the Items property . The Items property is an ItemCollection which implements IList. How to add Items to ListBox control in Xaml ? Below is a sample code snippet demonstrating the adding of the Items to ListBox in Xaml of a Windows 10 UWP App. The above showed how to add items…

Creating a Button in UWP app by specifying the namespace as one of the attributes of button

You can add a button in your Universal Windows Platform (UWP) app by simply adding the Button tag in the Xaml page. You will notice that the Namespace “http://schemas.microsoft.com/winfx/2006/xaml/presentation” is already referred in the Page element. You can add a button in the UWP app page by specifying the namespace as one of the attributes of button instead of specifying it at the page level….

How to Get the Device Platform in Windows 10 App ?

If you running your App on Windows 10 , you might want to get the device platform from your app for some reasons. If this is the case , you can use the DeviceFamily property defined in the Windows.System.Profile.AnalyticsInfo.VersionInfo class. Below is the sample code snippet demonstrating the usage of this. How to Get the Device Platform in Windows 10 App ? The complete codebehind…

Can you run a Windows 10 Universal Apps on Windows 8.1 ?

This is one of the frequently asked question by most of the developers who are new to Windows 10 App development. Can you run a Windows 10 Universal Apps on Windows 8.1 ? In simple words , NO. The other way around i.e building Windows Phone 8.1 and Windows 8.1 Universal App will ensure that your app will run fine on both Windows 8.1 and…