Creating Cross-Platform C# Applications with Uno Platform
Build apps with C# and XAML that run on Windows, macOS, iOS, Android, and WebAssembly
Matt Lacey, Marcel Alexander Wagner
- 258 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Creating Cross-Platform C# Applications with Uno Platform
Build apps with C# and XAML that run on Windows, macOS, iOS, Android, and WebAssembly
Matt Lacey, Marcel Alexander Wagner
About This Book
Discover how to leverage the Uno Platform to write single-codebase, cross-platform mobile, desktop, and web applications using C# and XAML
Key Features
- Enhance your Windows apps by running them on all operating systems and browsers
- Use tools and APIs you already know to remain productive as you target new platforms
- Create realistic apps for various lines of business (LOBs) and consumer scenarios
Book Description
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.
What you will learn
- Understand how and why Uno could be the right fit for your needs
- Set up your development environment for cross-platform app development with the Uno Platform and create your first Uno Platform app
- Find out how to create apps for different business scenarios
- Discover how to combine technologies and controls to accelerate development
- Go beyond the basics and create 'world-ready' applications
- Gain the confidence and experience to use Uno in your own projects
Who this book is for
This book is for developers who are familiar with app development for Windows and want to use their existing skills to build cross-platform apps. Basic knowledge of C# and XAML is required to get started with this book. Anyone with basic experience in app development using WPF, UWP, or WinUI will be able to learn how to create cross-platform applications with the Uno Platform.
Frequently asked questions
Information
Section 1: Getting to Know Uno Platform
- Chapter 1, Introducing Uno Platform
- Chapter 2, Writing Your First Uno Platform App
Chapter 1: Introducing Uno Platform
- Understanding what Uno Platform is
- Using Uno Platform
- Setting up your development environment
Technical requirements
- Windows 10 (1809) or higher
- macOS 10.15 (Catalina) or higher
Understanding what Uno Platform is
- As a UI platform, it's a way of building applications with a User Interface (UI). This is in contrast to those platforms that are text-based and run from the command line (or equivalent), are embedded in hardware, or are interacted with in other ways, such as by voice.
- Using a single code base means you only need to write code once to have it run on multiple devices and operating systems. Specifically, this means the same code can be compiled for each platform the app will run on. This is in contrast with tools that convert or transpile code into a different programming language before being compiled for another platform. It's also the only code base that's singular, not the output. Some comparable tools create a unique package that runs inside a host application on each OS, or create everything in HTML and JavaScript, and run inside an embedded browser. Uno Platform does neither of these. Instead, it produces native application packages for each platform.
- Windows apps are based on the Universal Windows Platform (UWP) for Windows 10. Work is currently being done at Microsoft to make WinUI 3 the successor to UWP. Uno Platform has partnered with Microsoft to ensure that Uno Platform can easily transition from UWP once WinUI 3 is at a comparable operative level.
- Windows support also includes the Windows Presentation Foundation (WPF), powered by SkiaSharp, for apps that need to run on older versions of Windows (7.1 or 8.1).
- Applications that run in WebAssembly have all their code compiled to run inside a web browser. This means they can be accessed from any device with a compatible browser, without running code on the server.
- By supporting iOS, the apps that are created can run on iPhones and iPads.
- With support for macOS, the apps can run on a MacBook, iMac, or Mac Mini.
- Support for Android applies to phones and tablets running the Android operating system.
- Linux support applies to specific Linux PC equivalent distributions and is powered by SkiaSharp.
A brief history of Uno Platform
- They turned the tool they had created into an open source project, calling it Uno Platform.
- They added support for WebAssembly.