Adding UWP ToolKit Controls In Universal Application Development

Before reading this article, please go through the article's link, given below-

  1. Introduction To Universal Windows Platform (UWP) App Development Using Windows 10 And Visual Studio 2015

After reading this article, you can learn, how to add UWP ToolKit controls in Universal Windows apps development with XAML and Visual C#.

The following important tools are required to develop UWP-

  1. Windows 10 (Recommended)
  2. Visual Studio 2015 Community Edition (It is a free software available online)

Now, we can discuss step by step app development.

Step 1 - Open Visual Studio 2015 -> Start -> New Project-> Select Universal (under Visual C#->Windows)-> Blank app -> Give the suitable name for your app (UWPToolKitControls)->OK.



Choose the Target and minimum platform version for your Windows Universal Application will support. Afterwards, the project creates App.xaml and MainPage.xaml.

Step 2 - Open (double click) the file MainPage.xaml in the Solution Explorer and add the Microsoft.Toolkit.Uwp.UI.Controls reference in the project.

For adding reference, right click on your project (UWPToolKitControls) and select Manage NuGet Packages.



Choose Browse and search Microsoft.Toolkit.Uwp.UI.Controls, select the package and install it.



Preview the Review changes.



Accept the license.



Reference is added to your project.



Step 3 - Add tab in the Toolbox to add UWP Toolkit controls.



Right click the UWPcommunityToolkit (newly added tab) and select choose items.



Select the path C:\Users\<username>\.nuget\packages\Microsoft.Toolkit.Uwp.UI.Controls\1.0.0 and select the file Microsoft.Toolkit.Uwp.UI.Controls.1.0.0.dll.



Filter the Microsoft.toolkit controls.



Step 4 - Now, all the UWP Toolkit controls are added to your project.



Summary - Now, you have successfully added UWP ToolKit Controls in Visual C# - UWP environment.

Up Next
    Ebook Download
    View all
    Learn
    View all