Skip to content

Universal Windows Platform line of business application showcasing the latest Windows 10 capabilities such as Fluent Design System, Ink and Windows Hello.

License

Notifications You must be signed in to change notification settings

Alvaromah/eShopOnUWP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

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

CI Build Build status

CD Build Build status

Prerequisites

System requirements:

  • 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

Getting Started

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

Features

Windows Hello

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.

Windows Hello

Data Providers

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

Local Data Provider

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

REST API Provider

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

SQL Server

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.

Settings

Fluent Design

Acrylic material

Acrylic material is a type of Brush that creates a partially transparent texture.

Acrylic material

Connected animations

Connected animations let you create a dynamic and compelling navigation experience by animating the transition of an element between two different views.

Connected animations

Reveal

Reveal is a lighting effect that helps bring depth and focus to your app's interactive elements.

Reveal

ShyHeader

ShyHeader demonstrates how to use ExpressionAnimations Tookit with a ScrollViewer to create a shinking header tied to scroll position.

ShyHeader

See also

About

Universal Windows Platform line of business application showcasing the latest Windows 10 capabilities such as Fluent Design System, Ink and Windows Hello.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%