Using OnPlatform and OnIdiom in XAML to create a UI in a .NET MAUI app

preview_player
Показать описание
Matt Soucoup and James Montemagno demonstrate platform-specific values in XAML​. One option in this example is to use OnPlatform, but did you know about OnIdiom?
Рекомендации по теме
Комментарии
Автор

Is it possible to use different controls on different Idioms? I mean what if I want to use Grid for Tablets but HorizontalLayout for Phones (just crazy example)?

IvanKozlov-reez
Автор

How to use OnIdiom with OnPlatform from XAML?

tech-man