The UI Kit screens can be added in your application by the following two ways:
Using Essential UI Kit for Xamarin.Forms Visual Studio extension.
Copying the files from our open source GitHub repository.
Essential UI Kit for Xamarin.Forms Extension
This is the easiest way to add the pre-defined screens to your application. The following steps explain how to add screens to an application with our extension:
Open Visual Studio.
Go to Extension, and then click Manage Extensions as shown in the following screenshot.
Search for Essential UI Kit for Xamarin.Forms, and then install it.
Restart the Visual Studio and allow it to complete the installation.
Now, open an existing Xamarin.Forms application or create a new application as per your requirements.
Right-click the Xamarin.Forms [NETStandard] project, and you can see the Essential UI Kit for Xamarin.Forms option.
Select the category and pages you need to add in your application. In the following screenshot, the Login Page with Gradient screen has been selected from the Login category.
Clicking the ‘Add’ button will include the selected page to your project. The necessary class files, resources, and NuGet package references will automatically be added to your project as shown in the following screenshot.
How to render the added page
In a Xamarin.Forms demo application, you must make the added page as the start-up page in the App.xaml.cs file.
Example: If you added the Login Page, then you must invoke the page as demonstrated in the following code.
MainPage = new SampleFormsApplication.Views.Login.LoginPage();
In real-world applications, you may need to do the following to use these XAML pages:
- Update the services for fetching the data from remote server or local database.
- Wire up the navigation and update the business logics in view models.
Requesting Screens and Reporting Bugs
If you would like to request a new screen or report a bug in existing screens, create a feature request or submit a bug through our feedback portal
Now, Essential UI Kit for Xamarin.Forms Visual Studio extension is supported in the Windows operating system only.