Migrating WinUI XAML markup and code to Uno Platform
In this section, we are going to take the
UnoMediaCollection solution that we created in the previous section and migrate the code from an earlier version of
MyMediaCollection. This will give us a cross-platform version of the application that we will run on Windows, Android, and WebAssembly in the sections ahead.
In order to keep things simple for our first project, we are going to migrate the code from the completed
MyMediaCollection solution found in the completed code for Chapter 5, Exploring WinUI Controls. If you don’t have a copy of that code, you can get it from GitHub here: https://github.com/PacktPublishing/Learn-WinUI-3-Second-Edition/tree/main/Chapter05/Complete. The easiest way to follow along with the instructions is to download the solution, but you can also create each class in the Uno Project solution and copy and paste the WinUI project code from the GitHub editor.
We are going to use the code from...