Desktop

Syncing Local Database with OneDrive Personal (Part 2)

References, Tools, Frameworks & Operating System used. S/No Items Links 1. Windows 10 or 11 Download Windows 10 (microsoft.com) 2. Visual Studio 2019 or 2022 Visual Studio: IDE and Code Editor for Software Developers and Teams (microsoft.com) 3. Visual Studio Code Visual Studio: IDE and Code Editor for Software Developers and Teams (microsoft.com) 4. Uno Platform Project Template Uno Platform Solution Templates – Visual Studio Marketplace 5. Microsoft Graph .NET SDK NuGet Gallery | Microsoft.Graph 4.10.0 6. Microsoft Identity Client Package NNuGet Gallery | Microsoft.Identity.Client 4.38.0 7. Mac OS macOS Monterey – New Features – Apple 8. Azure Portal AAD App registrations App Reg- Microsoft Azure   The repo can be found in Uno.Samples : https://github.com/unoplatform/Uno.Samples/tree/master/UI/UnoSQLiteOneDriveInvoiceSample In part one of this series, I explained how to create a local data store using SQLite .NET and populating the database with fake data using Bogus.NET. In this article, I will be going through the steps need to securely sync the database created in the previous article with OneDrive using the Microsoft Graph’s Files.ReadWrite.AppFolder permission. The simplest way to make access OneDrive in an Uno Platform app is to use the Microsoft Graph.NET SDK and the Microsoft Identity .NET package. To use these

SQLite .NET, OneDrive & Uno Platform (Part 1)

  References, Tools, Frameworks & Operating System used. Items Links Windows 10 or 11 Download Windows 10 (microsoft.com) Visual Studio 2019 or 2022 Visual Studio: IDE and Code Editor for Software Developers and Teams (microsoft.com) Visual Studio Code Visual Studio: IDE and Code Editor for Software Developers and Teams (microsoft.com) Uno Platform Project Template Uno Platform Solution Templates – Visual Studio Marketplace SQLite .NET NuGet Package NuGet Gallery | SQLiteNetExtensions 2.1.0 Bogus .NET NuGet Package NuGet Gallery | Bogus 33.1.1 SQLite Explorer extension for Visual Studio Code SQLite – Visual Studio Marketplace Data persistence is a critical part of any software system (except when you’re trying not to be found 😉). it’s storage locations and types are of critical importance primarily because these factors into the speed of accessing transforming and visualizing of data. In the space of mobile and desktop applications, local store data is of prime importance because this delivers the feature of data persistence however, a problem arises when you want to share your data across several devices think accessing the number of due invoices from your phone when the data is stored on your laptop. This gives rise to a need for portability and syncing of

Deploying Uno Platform Applications to Azure

On the Web, Uno Platform WebAssembly applications are all client-side, Static Web Apps. In this session from UnoConf 2021, Andres explores how to set up a hosting service designed for Static Web Apps and Uno Platform. As such it can be hosted in Azure with all the best Azure has to offer. Azure style Web Apps is a service that allows hosting static content on Azure by connecting a core repository like GitHub or Azure DevOps and automatically builds and deploys your applications based on code changes. In Azure, there are lot of features to make deploying and configuring your app seamless, including free SSL certificates that renew automatically, custom domains, a seamless security model, and free built-in authentication and routing. A secondary benefit of the Static Web Apps is the fact that your static content is globally distributed making it very close to your final user so that when they access your application, the application loads fast. Watch Andres Pineda’s full UnoConf talk for a more in depth look at deploying Uno Applications to Azure.   RESOURCES Additionally Gerard Gallant, an Uno Platform guest author and senior software developer has also written an article providing a Step-by-Step Walkthrough to

Best Practices for Testing Uno Platform Applications

Today Automated tests are no longer an afterthought, they’re an integral part of the development lifecycle. In this session, we share what you need to do to ensure your Uno Platform applications can be ready from the get-go for both automated unit and UI tests. As a very brief introduction, UI testing is made possible through something called Uno.UITests which is built specifically for Uno platform apps and the cornerstone of testing Uno platform applications. The first question that comes to our mind for automatic testing is why I should even bother to automate my Uno platform application tests? The truth is that tested applications not only ensure quality software is delivered to the customers, but it also reduces the time spent fixing obscure bugs. Additionally automatic tests help guarantee that your business logic produces the results you’re expecting and can enable you to catch difficult to reproduce issues and this is especially important to catch things that can break after new updates. There are a lot of different kinds of automatic testing but for Uno applications we want to focus on a particular kind of automatic testing called UI testing that focuses on the visual aspects of your app

Styling Beautiful Uno Platform Applications

Whether you’re looking to restyle a single control or an entire application, Uno Platform and WinUI’s styling engine gives you complete control down to the very last pixel while still giving you the native functionality on any platform. In this session from UnoConf 2021, Steve shares with you how you can start building beautiful Uno applications using the powerful styling capabilities from the platform as well as ready to ship themes that can transform your app with just a click of a button and a few lines of XAML. Our Styling Uno Platform Applications talk will first give you a look at the use of lookless control and how styling works on the Uno Platform. What tools are available to you to change the look of your app and what it means to be able to deliver pixel perfect applications while still maintaining the native richness of whichever platform you’re targeting. Finally, a deeper dive into the themes and styling in general will teach you firsthand how to customize these themes to match your own branding as well as give you the ability to build your own theme from scratch with some of the collections of styles, brushes, and resources

Using Native Controls in Uno Platform Applications – Demo Code Included

The truly successful frameworks are ones that empower developers by offering the flexibility of working with whichever libraries and tools are needed based on the platforms targeted. In Daniel ‘s UnoConf 2021 session, he shows us how we can use native APIs on our Uno Platform applications that gives us access to the tools needed to get the job done in case a suitable cross-platform control doesn’t exist. In mobile scenarios, if you ever have a need to incorporate a purely native view in Uno Platform cross-platform app, there is an option to do so. Uno Platform views inherit from the base native view defined in .NET binding or the native framework itself, so you can incorporate native views into your app’s visual tree. For Web / WebAssembly scenarios Uno Platform provides the tools to allow use of JavaScript libraries that are out in the open such as i.e. Flatpickr, something well documented in our docs. Watch as Daniel demonstrates the steps to create a barcode reader app that targets two different platforms, Android, and the Web. • Create an html5 video tag that will load the feed of the webcam on the web page • Import the QuaggaJS library

Uno Platform – 2021 in Review

2021 was quite the year. Not only for our team but also for the community of contributors that helped get Uno Platform where we are today. Thank you for making our favorite moments from this year possible, and for being part of this incredible community. Releases Its only natural to start this post by recapping the innovation that went into Uno Platform this year. We had 8 releases (3100+ commits!) across 12 months: or about 6 weeks apart. This seems to be the sweet spot for releasing as it is a good balance for new features being tested and available in our ‘dev’ releases and making them final in our official releases. We stayed true to shipping on, or very close to, Day 0 to WinUI and .NET Releases – both official releases as well as previews. While this process puts extra strain on our team, it is a necessary step which makes sure that our community can take advantage of newest features published by both Windows and .NET teams. We hope to keep this up in 2022. Highlights wise – in addition to core support for WinUI 3 and .NET 6 we also added support for Visual Studio 2022,

Announcing Uno Platform 4-0. Four Major Components Added

Four platform additions for speeding up application development announced: Visual Studio Code and Figma integration, Uno Platform Extensions and UI Toolkit.   Today, at UnoConf, we announced Uno Platform 4.0 which marks major new expansion to the platform, and an introduction of a set of new productivity tooling for Visual Studio Code users, a Toolkit of multiplatform-first components, a Figma plugin to eliminate the designer-developer handoff for XAML developers, and a set of Extensions to help with jumpstarting your apps.    Following today’s announcements, with Uno Platform you will be able to develop C# and XAML applications from any operating system or browser, and deploy them to Web, Android, iOS, macOS, Linux and Windows.  Note: If you missed any of UnoConf 2021, you can still experience every moment. Check out the conference here. Uno Platform Extensions To help you bootstrap a new Uno Platform application and get started with proper architecture we are introducing Uno Extensions. The idea is you shouldn’t need to ever write code from scratch for commonly used functions, while retaining an option to easily extend any feature.  Microsoft has extracted a host of capabilities outside of ASP.NET and made them available through Microsoft Extensions – covering hosting, logging, configuration, etc. In turn, Uno Platform Extensions are based on Microsoft Extensions. Reactive (MVU-X) While we have ~10 extensions available, Reactive is one of the bigger ones and deserves special attention. In our

Uno Platform 3.11: Support for .NET 6 RTM, VS 2022 17.1 Preview 1

It was a busy week with 3 full days of .NET Conf – the exciting launch of .NET 6 and Visual Studio 2022. The scalability, reliability, and performance of Visual Studio 2022 have all been significantly improved. On our side the first tests of Uno Platform on .NET 6 RTM are showing great performance improvements on Visual Studio 2022 across several fronts, including Android and WebAssembly. More on this at our UnoConf…. Uno Platform 3.11 release ships 160+ features and bug fixes and adds support for  .NET 6 RTM with all related improvements.   As Microsoft had announced the delay for .NET 6 support for Android and iOS, we’ve re-introduced Xamarin-based templates for Visual Studio 2022. Additionally, the support for preview .NET 6 Android and iOS has now been moved to 17.1 Preview 1. In Visual Studio 2022, you’ll find now two templates: One named Multi-Platform App (UnoPlatform|xamarin), which uses the existing stable Xamarin “Classic”. It is the same as found when using Visual Studio 2019. One named Multi-Platform App (UnoPlatform|net6), which uses the .NET 6 preview support for iOS, Android, macOS and Catalyst and requires Visual Studio 17.1 preview 1. To use this new release, you can setup your