What is a BindableProperty Class in MAUI?
Loading
What is a BindableProperty Class in MAUI?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Cynthia SathuragiriPosted Dec 3, 2025, 6:04 AM
A BindableProperty in MAUI is a special kind of property that lets your UI automatically update when the data changes.
Custom control with a bindable property:
public class MyLabel : Label
{
public static readonly BindableProperty Text2Property =
BindableProperty.Create(nameof(Text2), typeof(string), typeof(MyLabel));
public string Text2
{
get => (string)GetValue(Text2Property);
set => SetValue(Text2Property, value);
}
}
When the value of Name changes in your data, the UI updates automatically.
Pankajkumar PatelPosted Dec 3, 2025, 5:34 AM
Following is one of the good article for "BindableProperty Class in MAUI" which may help:
Data Binding in .NET MAUI with Bindable Properties
https://www.c-sharpcorner.com/blogs/data-binding-in-net-maui-with-bindable-properties