Differences in UI Based on Platform with OnPlatform - .NET MAUI 101

preview_player
Показать описание

With the OnPlatform APIs in .NET MAUI you can provide different values for different platforms easily in XAML. In this video you will learn the ins and outs!

💝 Join this channel to get access to perks:

Disclaimer: this channel is done on personal title, in my free time, and not officially affiliated with or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.

🔗 Links

⏱ Timestamps
0:00 - OnPlatform in .NET MAUI
0:16 - What is OnPlatform in XAML?
0:46 - Implement Different TextColor for Windows and Android
3:24 - More Compact Syntax
5:20 - Using OnPlatform in Styles
6:28 - Differentiate in C# Code
7:04 - What About OnIdiom?

🎥 Video edited with DaVinci Resolve

🙋‍♂️ Also find my...

#dotnetmaui #onplatform #xaml #maui101 #dotnet #maui
Рекомендации по теме
Комментарии
Автор

Really like your videos, they helped me out a couple of times. 👍
I hope you can do a small tutorial sometime, on how to use IOS extensions in Maui.
Been busy porting an existing Xamarin app, but the extension part is the one part that is unclear. Not much documentation either.

MrThunderhart
Автор

Круто, это база, но я этого не знал. Спасибо!!!!

plazmius
Автор

Now it's James' turn for Monkey Finder 2, the platform specific version 🙂

CoderboyPB
Автор

And how should I use different content page on different platforms? What is the best practice for that?

ferenc
Автор

Nice video, but when you talk about the "More Compact Syntax" you say that it's using a TypeConverter when it's a MarkupExtension. ;)

MRLacey