With Dark Mode now supported in every major platform, it's time to update your Xamarin.Forms app to support it as well. In this video we will see how to add dark theme support both in XAML and C# code. The values will update during runtime and you have an event to hook into for other things you might want to deal with.
⏱ Timestamps
0:00 Intro (poor Batman quote impression)
0:28 Sample App Explanation
0:44 iOS Simulator Pro-Tip
1:45 Implement Light/Dark w/ AppThemeBinding XAML
3:05 Dark/Light Difference TextColor
3:38 Page Background Pro-Tip
4:25 AppThemeBinding Different Syntax
5:20 RequestedThemeChanged Event
7:20 Dark/Light Difference Images
9:10 AppThemeBinding in C# Code
10:30 Android Demo
11:20 ConfigChanges.UiMode Android Pro-Tip
12:20 UWP Demo
13:16 RequestedTheme UWP Pro-Tip
13:57 Outro, subscribe!
🛑 Don't forget to subscribe to my channel for more cool content: kzitem.info...
🔗 Links
Batman Reference: www.quotes.net/mquote/111487
Sample code repo: github.com/jfversluis/XFDarkM...
Theme Changes Docs: docs.microsoft.com/xamarin/xa...
AppThemeBinding Markup Extension Docs: docs.microsoft.com/xamarin/xa...
Video edited with Camtasia (ref): techsmith.z6rjha.net/AJoeD
Негізгі бет Тәжірибелік нұсқаулар және стиль Adopt Dark Mode in Your Xamarin.Forms apps With These Simple APIs
Пікірлер: 62