Book Image

Creating Cross-Platform C# Applications with Uno Platform

By : Matt Lacey, Marcel Alexander Wagner
Book Image

Creating Cross-Platform C# Applications with Uno Platform

By: Matt Lacey, Marcel Alexander Wagner

Overview of this book

Developers are increasingly being asked to build native applications that run on multiple operating systems and in the browser. In the past, this would have meant learning new technologies and making multiple copies of an application. But the Uno Platform allows you to use tools, languages, and APIs you already know from building Windows apps to develop apps that can also run on other platforms. This book will help you to create customer-facing as well as line-of-business apps that can be used on the device, browser, or operating system of your choice. This practical guide enables developers to put their C# and XAML knowledge to work by writing cross-platform apps using the Uno Platform. Packed with tips and practical examples, this book will help you to build applications for common scenarios. You'll begin by learning about the Uno Platform through step-by-step explanations of essential concepts, before moving on to creating cross-platform apps for different lines of business. Throughout this book, you'll work with examples that will teach you how to combine your existing knowledge to manage common development environments and implement frequently needed functionality. By the end of this Uno development book, you will have learned how to write your own cross-platform apps with the Uno Platform and use additional tools and libraries to speed up your app development process.
Table of Contents (13 chapters)
Section 1: Getting to Know Uno Platform
Section 2: Writing and Developing Uno Platform Apps
Section 3: Test, Deploy, and Contribute

What this book covers

Chapter 1, Introducing Uno Platform, introduces the Uno Platform, explaining what it is designed for and when to use it. After this, the chapter will cover how to set up the development machine and install the necessary tools.

Chapter 2, Writing Your First Uno Platform App, walks through creating your first Uno Platform app and covers the app's structure. By the end of this chapter, you will have written a small Uno Platform app that can be run on different platforms and display content based on the OS the app is running on.

Chapter 3, Working with Forms and Data, walks you through developing a data-focused line-of-business app for the fictional company UnoBookRail. The chapter covers displaying data, providing input validation on forms, and exporting data to PDF.

Chapter 4, Mobilizing Your App, introduces you to developing mobile apps using Uno Platform. In addition to that, the chapter covers working with remote data on devices with unstable internet connections, styling the app based on the platform it is running on, and using device capabilities such as the camera.

Chapter 5, Making Your App Ready for the Real World, covers writing a mobile app that is aimed at external customers. As part of this, it covers persisting data locally on the device, localizing your app, and writing an accessible app with Uno Platform.

Chapter 6, Displaying Data in Charts and with Custom 2D Graphics, explores displaying graphs and charts in an Uno Platform app. The chapter covers using libraries such as SyncFusion and creating custom graphics using SkiaSharp. Lastly, the chapter covers writing a UI that responds to changes in screen size.

Chapter 7, Testing Your Apps, introduces you to UI testing with Uno.UITest. In addition, this chapter covers writing automated UI tests with WinAppDriver, writing unit tests for the Windows 10 version of the app, and testing the app for accessibility.

Chapter 8, Deploying Your Apps and Going Further, walks you through bringing your Xamarin.Forms app to the web with Uno Platform and deploying WASM Uno Platform apps to Azure. After this, the chapter covers deploying an Uno Platform app and joining the Uno Platform community.