-
MAUI Fontawesome Integration
Download FontAwesome Let’s start with downloading Fontawesome font file from https://fontawesome.com/v5/download Add the Font File to Your Project Place the Font File: Register the Font in MauiProgram.cs In MauiProgram.cs register your custom font so that it can be used in your whole application. Below code save into a new file named IconResources.xaml or whatever you…
-
MAUI Drawings and Brushes
Simple Brushes Filling the background of a control or coloring shapes, text and other UI elements, brushes in .NET MAUI can be used. Brushes include: And these brushes can be applied to a lot of elements, from Frame to BoxView, Shapes, etc. SolidColorBrush The simplest is SolidColorBrush. It is filling the element with one solid…
-
MAUI Animations
Animations are a core feature of the .NET MAUI, using them can create great user experience by playing motion and transitions to your UI elements. With this, its built in methods can help you animate some of the same properties on a control like scaling, rotation, translation, fading. Additionally, you can compose these animations to…
-
MAUI Triggers
Triggers in .NET MAUI allow changing of UI elements appearance or behaviour depending on conditions or events. They provide you abilities to react to property adjusts as well as particular activities immediately in XAML without composing more code in the code behind. Triggers help to keep the UI dynamic and make it quick to implement…
-
MAUI Secure Storage
Built-In Secure Data Storage .NET MAUI built-in Secure Storage feature is for securely storage of sensitive data. It stores data securely using platform specific security features. For example: Secure Storage is primarily used to save data like: Saving to Secure Storage Using the SecureStorage.SetAsync() method you save data into Secure Storage. Here is a simple…
-
MAUI Application Data Storage
Storing application data in .NET MAUI is necessary to maintaining state, saving user preferences or to manage data between application sessions. The type of data and the required persistence determines how it is stored. Below are several approaches to storing data in a .NET MAUI application: .NET MAUI Data Storage Options Preferences for simple key…
-
MAUI Gesture Detection Part-2
I’ll explain the key gestures you can use in MAUI, and then I’ll go through an example covering: They are implemented in .NET MAUI by using GestureRecognizers. .NET MAUI GestureRecognizers Define the User Interface in XAML MainPage.xaml MainPage.xaml.cs(Handle Gesture Events in Code-Behind) Tap Gesture (OnLabelTapped): Pinch Gesture (OnPinchUpdated): Swipe Gesture (OnBoxViewSwiped): Pan Gesture (OnPanUpdated): Further…
-
MAUI Gesture Detection Part-1
Gesture detection in .NET MAUI helps you build dynamic, interactive user interfaces which respond to the user’s gestures like swipes, taps, and pinches. Topics Covered I will create a page where: Setting Up the ViewModel I will have a ViewModel that will hold a list Items that the users can interact with. GestureViewModel.cs Creating the…
-
MAUI Creating Custom Attached Properties
Custom attached properties are a powerful way to extend existing controls with new properties not part of the control basic definition in .NET MAUI. It also gives you the ability to create your reusable behaviors or styles that you can add to multiple different elements in your app. Attached Properties Overview Adding a Custom BorderColor…