[.NET MAUI Developer Day in GCR 2022] Ways to create controls in .NET MAUI

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thanks for this video Javier, I just started playing around with MAUI controls because I am trying to create a Mapbox library for .NET MAUI and it was very helpful.

At the moment I'm focusing only on android and I managed to create the necessary native binding libraries and a very simple MAUI library implementing Mapbox's Mapview, the only problem is it is recommended to call the activity's lifecycle methods (onStart, onPause, onResume and so on) for the native mapview control, however I couldn't find a way to do that inside the ViewHandler.

On the Mapbox Xamarin port I have (based on Naxam's work) I did those calls on a Fragment but I couldn't figure it out how to use the Fragment in the handler's CreatePlatformView override.

Any idea on how I would do that?

ericlira
Автор

Thank you for this video. Very interesting! I have a question about the "ContentView" method (my favorite tbh). You say to create disposable controls: is the Dispose() method called automatically when the view disappears? Or do you have to call it manually, for example, inside the OnDisappearing of the parent page?

riccardominato
Автор

Estimado Javier Suárez, su código me da 45 errores en Mac M1, por ejemplo, CS0263, La declaraciones parciales de CustomCheckBox no deben especificar clases base diferentes. Estaba estudiándolo para utilizar alguna herramienta para mvvm ObservableValidator, dado que hay ejemplo para XAML pero no para XAML MAUI ¿Alguna sugerencia?

javier_marcuzzi