When an app runs on iOS 13 and when a user flips to dark mode from settings then apps do not look so great. So there are two ways to handle this: either create different themes for Dark Mode and Light Mode and switch based on the system’s theme at runtime or prevent the Dark…
How to apply color to Images and Icons in MAUI
Sometimes we need the same image in two different colors (eg : enable/disable image) to show based on some conditions. So taking two images is not the right way. We need to use one image instead of two and based on some condition we need to change the color of the same image. So In…
How to set iOS large page title in MAUI
.Net MAUI enables us to set the iOS large page title for devices that use iOS 11 or greater. A large page title is left aligned and uses a larger font and when the user scrolls the content up then the title returns to the center of the navigation bar. So In this article, I’m…
How to change StatusBar color in MAUI
MAUI Community Toolkit provides us StatusBarBehavior to change status bar color and style. So In this article, I’m going to show you how to change StatusBar color in MAUI. Let’s Start In this sample demo we will use CommunityToolkit.Maui nuget package. CommunityToolkit.Maui CommunityToolkit.Maui is a collection of Converters, Behaviours, Animations, Custom Views, Effects, Helpers etc. It simplifies the developers…
How to apply item reordering to CollectionView GridItemsLayout in MAUI
Drag and Drop gestures enable drag an element from one place and drop to another place. We can apply drag and drop gestures to any UI elements using DragGestureRecognizer and DropGestureRecognizer class. In my last post I explained how to apply drag and drop gestures to CollectionView LinearItemsLayout click here to see. So In this…
How to use drag and drop gesture to CollectionView in MAUI
MAUI provides us drag and drop gestures which enables drag an element from one place and drop to another place. We can apply drag and drop gestures to any UI elements using DragGestureRecognizer and DropGestureRecognizer class. So In this article, I’m going to show you how to use drag and drop gesture to CollectionView in…
How to use ObservableObject in MAUI for Data Binding
The traditional way to implement MVVM (Model-View-ViewModel) using INotifyPropertyChanged interface but now we have a ObservableObject that provides a base implementation for INotifyPropertyChanged and INotifyPropertyChanging and this is exposing the PropertyChanged and PropertyChanging events. So In this article, I’m going to show you How to use ObservableObject in MAUI for Data Binding. Note : To…
How to use Field Modifiers in MAUI
Field Modifiers in MAUI is an attribute which is used for specifying the access level of xaml elements. This is similar to x:FieldModifier in xamarin forms. The valid values of x:FieldModifier are Private, Public, Protected, Internal and NotPublic. So In this article, I’m going to show you how to use Field Modifiers in MAUI. Let’s…
How to get Device and App Informations in MAUI
As a mobile apps developer, sometimes we need device and app information like device Model, Manufacturer, OS Version, App Version, Package Name etc. to perform some actions. That’s why in this article i am going to show you how to get device and app Informations in MAUI. Let’s Start In this article you will see…
How to use MediaElement in Xamarin Forms
MediaElement in Xamarin Forms Community Toolkit is a view where we can play audio and video files. The media files (Audio / Video) can be in either remote or local and we can play those media files using uri. So In this article, I’m going to show you how to use MediaElement in Xamarin Forms….