This document provides an overview of Universal Windows Platform (UWP) app development. UWP allows developers to write a single app that can run across all Microsoft device families using common APIs and tools. Key points covered include: what UWP apps are, their characteristics like targeting device families and using the .AppX package format, familiar programming languages can be used, how to design adaptive UIs, and how Visual Studio can be used to build UWP apps.
1. Universal Windows Platform (UWP)
app Development
Thilina Wijerathne
2nd Year
Computing And Information Systems
Sabaragamuwa University of Sri Lanka
2. Agenda
What's a Universal Windows app
Universal Windows Platform (UWP)
Familiar Programming Languages
Device families
Benefits of Universal Apps
UI and universal input
Build UWP apps with Visual Studio
4. UWP apps is
Windows experience that is built upon the Universal Windows Platform
(UWP), which was first introduced in Windows 8 as the Windows
Runtime.
A single app package that will work across Microsoft devices.
Write once, Deploy to all the Windows.
5. Characteristics of Universal Windows app
You target device families, not an OS.
Apps are packaged and distributed using the .AppX packaging format.
One store for all devices.
Common API surface across device families.
Extension SDKs make your app light up on specialized devices.
Adaptive Controls and input.
13. • A device family is a set of APIs collected together and given a
name and a version number.
• The set of APIs in the universal device family is inherited by
child device families.
17. Universal controls and layout panels
Controls have been updated to work well
on larger screens
UI layout based on the screen
resolution of the device
18. Design adaptive UI with adaptive panels
Layout panels give sizes and positions to their children, depending on
available space.
Use visual state triggers to build UI
UI can be adapt to changes in window size
Tooling
App targets the broadest possible device family.
Common input handling
Your App handles various inputs such as mouse, keyboard, touch, pen, and
controller (such as the Xbox controller).
first introduced In Windows 8 as the Windows Runtime.(WinRT)
users want their experiences to be mobile across ALL their devices
UWP with just one API set, one app package, and one store to reach all Windows 10 devices.
easier to support a number of screen sizes, and also a variety of interaction models.(mouse,keyboard,touch pad).
A device family identifies the APIs, system characteristics, and behaviors you can aspect devices within the device family.
This provides a trust installation mechanism and ensures that you can or not deploy.
After you register as an app developer, you can submit your app to the store
The UWP core APIs are the same for all Windows device families. If use core APIs it will run any.
Extension SDKs add specialized APIs for each device family.
automatically adapt themselves based on the number of screen pixels available on the device. And work well with multiple types of input.
Windows 10 introduces the Universal Windows Platform.
Windows Runtime model and brings it into the Windows 10 unified core.
UWP is simply a collection of contracts and versions. These allow you to target where your app can run.
UWP provides a common app platform available on every device that runs Windows 10.
Your app that target the UWP can call not only the WinRT APIs that are common to all devices, but also APIs(Win32 and .NET APIs)
UWP provides a guaranteed core API layer across devices.
Several platforms have Extension SDKs.
For example, an extension SDK for mobile handles the back button.
have a common core across all Windows 10 platforms.
There is one common source, one common Windows kernel, one file I/O stack, and one app model.
For the UI, there is just one XAML UI framework and one HTML UI framework.
Universal Windows apps use the Windows Runtime, a native API built into the operating system.
With Windows 10 you no longer target an operating system.
But you instead target your app to one or more device families.
A device family identifies the APIs, system characteristics, and behaviors that you can expect across devices.
*****device family hierarchy.
A device family is the foundation of an OS.
One benefit of device families is that your app can run on any, or even all, of a variety of devices.
1.
2. The platform itself identifies the different ways various-sized screen. adaptively scaling the screen appearance automatically.
3. you will no longer need to manage multiple versions based on which device they run on..
4. customers can choose to run whatever app they prefer on the device .
Windows 10 includes new controls such as the calendar and split view.
on larger screens, adapt themselves based on the number of screen pixels available on the device.
Windows 10 introduces adaptive panels and design states.
1. Layout panels give sizes and positions to their children, depending on available space.
The new RelativePanel implements a style of layout that is defined by the relationships between its child elements..
DEMO relative panel..
2. Adaptive visual states allows you to change the visual state in response to changes in the size of the window.
3. By default, you'll probably want to target the broadest possible device family. ***DEMO** Device
4. You can build a Universal Windows app using universal controls that handle various inputs..(Mouse,keyboard…)