This repo contains a UWP sample application for Windows 10 Fall Creators Update. It is focused on Line of Business scenarios, showing how to use the latest Windows capabilities in Desktop applications.
Some of the features showcased by this application include:
- MVVM Design Pattern
- Use of Fluent Design System
- Multiple Data Providers
- Common CRUD operations
- .NET Standard 2.0
- REST API requests
- Windows Hello
- Telerik controls
- Windows 10 Fall Creators Update. To run the application you should be running Windows version 10.0.16299 or above.
- You can get it as described here
- Visual Studio 2017 v15.4 -> Download
- Including the Windows 10 FCU SDK 10.0.16299
You can install a working version of the app from https://aka.ms/eshopuwp
If you want to execute the app from Visual Studio 2017, follow these steps:
- Clone or download a Zip copy of the entire solution
- Open the eShop.UWP.sln solution in Visual Studio 2017
- Ensure eShop.UWP is the startup project
- Start the project
Note: In Visual Studio 2017, the platform target defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device
There are two ways to log-in, either with user/password or using Windows Hello. The first time the application is run, the user/password log in option will appear by default. After log-in you will be prompted to enable Windows Hello for that user.
Once you have logged-in using Windows Hello, your user will be saved and the next time you open the application Windows Hello authentication will appear as default. Depending on how your Windows Hello settings are (Settings/Accounts/Sign-in options), you will be able to authenticate by using:
- Pin
- Face recognition
- Fingerprint
- Etc.
From the Settings page, you can select one of the following Data Providers, each supporting CRUD operations and demonstrating different data access technologies:
- Local (JSON file)
- REST API
- SQL Server
This is the default and simplest data provider. It is based on a JSON file containing a serialized collection of catalog items. The JSON file is stored in the application’s LocalFolder.
TIP: You can always restore the default catalog data by going to Settings -> Reset data
This data provider shows common operations to access a remote server using the HTTP protocol with GET, POST, PUT and DELETE actions.
In order to test this data provider, a .NET Core 2.0 Web API project (eShop.Server) is included in the solution. Execute this project first and configure the data provider with the Url assigned to the server.
TIP: When you open this project with Visual Studio, a launchSettings.json file is generated in the Properties folder. This file configure the server to listen in a random port, but you can delete this file and let the server listen to the preconfigured url address at http://localhost:5001
This data provider shows how to access a SQL Server using .NET Standard 2.0 libraries such as System.Data.SqlClient.
The solution includes a .NET Standard 2.0 Class Library project (eShop.SqlProvider) to connect to a SQL Server using a typed DataSet and classic DataAdapters to perform common CRUD operations. This project represents existing code that we want to reuse from a classic application.
With .NET Standard 2.0, thousands of existing APIs become available to UWP applications, including existing .NET Framework APIs what makes much easier to port existing code to UWP.
You can test this data provider by going to Settings, specifying the SQL connection string and pressing the “Create Database” button.
IMPORTANT: The “Create Database” button will DROP, CREATE and fill with default data the database specified in the connection string so be careful not to destroy an existing database.
Acrylic material is a type of Brush that creates a partially transparent texture.
Connected animations let you create a dynamic and compelling navigation experience by animating the transition of an element between two different views.
Reveal is a lighting effect that helps bring depth and focus to your app's interactive elements.
ShyHeader demonstrates how to use ExpressionAnimations Tookit with a ScrollViewer to create a shinking header tied to scroll position.