Gone Mobile Podcast
Gone Mobile Podcast
Greg Shackles, Jonathan Dick
95: Xamarin.Forms to MAUI
1 hour 1 minutes Posted Feb 23, 2024 at 6:00 pm.
Introduction and Migration Experiences
Opportunity for Architectural Improvements
Evolution of Xamarin.Forms to Maui
Architecture of Maui Handlers
Benefits of Single Project Structure
Migration of Third-Party Libraries
Handling Dependency Service and Renderers
Porting Plugins and Controls
Customizing Entry Handlers
Migration of Resources
Image Management Challenges
Building a Solution: Resize-itizer
Vector Images in Maui
App Icons and Splash Screens
Migrating Resources to Maui
Font Handling in Maui
Replacing Frames with Borders
Avoiding Tap Gesture Issues with Stack Layouts
Namespace Changes in XAML
Methodical Migration Process
Package of the Week: Maui Community Toolkit
0:00
1:01:41
Download MP3
Show notes
In this episode, Jon and Allan discuss the migration experiences from Xamarin.Forms to .NET MAUI. They highlight the opportunity for architectural improvements during the migration process, such as cleaning up code and removing static untestable components. They also explain the evolution of Xamarin.Forms into .NET MAUI and the introduction of handlers. The benefits of the single project structure and the ease of migrating third-party libraries are discussed. The conversation also covers the customization of entry handlers and the migration of resources, including images and fonts. This conversation covers various challenges and solutions related to image management, including the use of vectors, app icons, and splash screens. It also discusses the migration process from Xamarin.Forms to .NET MAUI, highlighting the importance of a methodical approach. The conversation concludes with a recommendation for the Maui Community Toolkit as a valuable resource for developers.
Takeaways
Migrating from Xamarin.Forms to .NET MAUI provides an opportunity to improve the architecture of the app.
The introduction of handlers in .NET MAUI allows for cleaner and more testable code.
The single project structure in .NET MAUI simplifies the development process and improves compile times.
Migrating third-party libraries may require finding alternatives or porting them to .NET MAUI.
Customizing entry handlers and migrating resources, such as images and fonts, can be done more easily in .NET MAUI. Image management in mobile app development can be challenging, especially when dealing with different resolutions and densities.
Using vectors can simplify image management by allowing for easy scaling to different sizes.
App icons and splash screens can be generated automatically in .NET MAUI, reducing the manual effort required.
When migrating from Xamarin.Forms to .NET MAUI, it is important to approach the process methodically, starting with dependencies and gradually bringing over pages and components.
People
Hosts: Jon Dick, Allan Ritchie
Chapters