-
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…
-
MAUI Creating Custom Bindable Properties
When creating custom controls that use databinding in n .NET MAUI it’s useful to create custom bindable properties. Custom controls can participate in XAML based data binding like any other UI control using Bindable properties. Custom Bindable properties overview A bindable property allows you to: With the BindableProperty class we create a bindable property which…
-
MAUI Data Binding
In .NET MAUI, data binding allows us to connect UI elements to data sources for the data to be automatically bound when changes made on the source are reflected on the UI. It’s very important when you’re creating complex applications as it makes your UI much more dynamic and easy to manage. Let’s build a…