Tag: UWP
Getting the User’s Last Name in Windows 10 Apps using JavaScript
Below is a sample JavaScript code snippet demonstrating how to get the user’s last Name from the Windows 10 Universal Windows Platform App using WinJS. How to Get the User’s last Name in Windows 10 Apps using JavaScript ?
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 Copy Image from Assets folder to localstorage in Windows 10 ?
If you want to copy a file or image from a folder to localstorage in Windows 10 , you can use the CopyAsync method of the StorageFile class to do it. How to Copy Image from Assets folder to localstorage in Windows 10 ?
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.
Getting the Account Display Name in Windows 10 Apps using JavaScript
Below is a sample JavaScript code snippet demonstrating how to get the account display name from the Windows 10 Universal Windows Platform App using WinJS. How to Get the Account Display Name in Windows 10 Apps using JavaScript ?
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…
How to embed Rectangle inside a Button in Windows Store App using C#?
Below is a sample code demonstrating how to embed a Rectangle inside a Button in Windows Store App using C#?. How to embed Rectangle inside a Button in Windows Store App using C#? The Xaml page with the Grid named “Panel” looks like the one shown below.
How to Check if a file exists in Windows Storage in UWP ?
Do you want to know if a file exists in the Windows Storage from your Universal Windows Platform (UWP) app ?. Below is a sample code snippet demonstrating how to do it. How to Check if a file exists in Windows Storage in UWP ?
How to add entries to ResourceDirectory in Windows 10 UWP Apps using C# ?
Below is a sample code snippet demonstrating how the entries can be added to the ResourceDirectory in Windows 10 UWP application using C#. How to add entries to ResourceDirectory in Windows 10 UWP Apps using C# ?