/BridgeTour-Workshop

A guided workshop about the Windows Desktop Bridge, used during the Bridge Tour event

Primary LanguageC#MIT LicenseMIT

Bridge Tour Workshop

A full workshop about the Desktop Bridge that will teach you how to move from a traditional Windows Forms app to a Universal Windows Platform app. The application simulates a simple flight tracking tool, by allowing to:

  • Add the data about a flight you want to track
  • Save the data so that it's persisted across usages
  • Export a boarding pass on the user's desktop

Starting from this simple app, you will go through all the steps of the Desktop Bridge journey:

  1. Convert: The Windows Forms app is converted, as it is, to leverage the Universal Windows Platform container and the new deployment model based on AppX
  2. Enhance: The Windows Forms app uses some APIs of the Universal Windows Platform to integrate better with Windows 10. In this specific case, the app will show a toast notification when the operation to export a boarding pass is completed.
  3. Extend: The Windows Forms app uses some components of the Universal Windows Platform to offer feature that wouldn't be as easy to implement in the .NET Framework. In this specific case, the app will show a toast notification every time the time zone of the computer will change, thanks to a background task.
  4. Migrate: The Windows Forms app has now been migrated to a real Universal Windows Platform app, that can run on multiple devices (phone, Xbox, HoloLens, etc.) and not only on a traditional computer. However, since the feature to export a boarding pass uses some features which aren't available in the Universal Windows Platforms, it will be available only when the app is running on the desktop: in this case, the UWP app is able to launch the Win32 process that takes care of exporting the pass.
  5. Reach all: All the features of the app have been migrated to use Universal Windows Platfomr APIs: now the boarding pass export feature is implemented using the FileSavePicker API, which allows the user to choose where he wants to save the file. Now the app can run, without any limitation, on any device and it doesn't require any special capability or approval to be published on the Store.

In this repository you will find:

  • A folder for each step of the journey, with a starting and ending point
  • A document that will guide you through each step of the joruney. It's a Word document called Workshop Guide.docx

Some resources to know more about the Desktop Bridge: