![]() Unlike Xamarin.Forms, which uses a Color to specify BackgroundColor and TextColor, WinUI uses a Brush to define Background and Foreground colours. ThemesĮach of the five themes defines Primar圜olor and Secondar圜olor resources that are Color instances. The next step is to add the five different theme files and the SimpleCalculator class – I did this by cloning the SimpleCalculator repo (I actually grabbed Robin’s fork), opening the solution in file explorer and simply dragging the files across into the Shared project in Visual Studio.Īfter adding these file, we had to update the namespace from SimpleCalculator to SimpleWinUICalculator. net5 application with WinUI as the UI framework. What this means is that the Windows.Desktop project is just a. Rather than using UWP as the basis for the cross platform APIs, this template uses WindowsUI as the basis. The unoapp-winui template generates head projects for each of the supported Uno platforms. Let’s kick off with creating a new WinUI+Uno project – I’ll use the dotnet template. ![]() I did make some additional changes to leverage some of the features of WinUI, such as XAML animations and theme resources. ![]() I’m going to try to keep as close to the original source code as possible. With a little animation □ /CWEZmyJGET- Robin Zevallos March 5, 2021 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |