
Description
This agent skill gives guidance on data binding in .NET MAUI, covering XAML and C# bindings from view controls to view model properties. It recommends compiled bindings everywhere, with x:DataType set on the page, and says binding warnings should be treated as build errors so mistakes are caught at compile time. The skill covers INotifyPropertyChanged and the CommunityToolkit ObservableObject base class for change notification, value converters and multi-value converters, and how to pick the right BindingMode for a control property. It also covers setting BindingContext in XAML or code-behind, relative bindings such as Self, AncestorType and TemplatedParent, and the StringFormat, FallbackValue and TargetNullValue options. For .NET 9 and later, it covers AOT-safe code bindings with SetBinding and lambdas. The skill is for developers who build .NET MAUI screens and want their bindings checked at build time. It is delivered as instructions for a coding agent, which applies them when it edits your XAML and view models.…
Highlights
- Compiled bindings with x:DataType
- INotifyPropertyChanged and ObservableObject
- Value converters and binding modes
- AOT-safe code bindings for .NET 9 and later
Ratings & Reviews
No ratings yet
Be the first to rate maui-data-binding.
People also visit

maui-dependency-injection
Guidance for configuring dependency injection in .NET MAUI apps
maui-data-binding FAQ
What bindings does it recommend?
Compiled bindings everywhere, with x:DataType on the page, and binding warnings treated as build errors.
Which change-notification approaches are covered?
INotifyPropertyChanged, and the CommunityToolkit ObservableObject base class.
Does it cover AOT?
Yes. For .NET 9 and later it covers AOT-safe code bindings with SetBinding and lambdas.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill maui-data-binding in your project.
What are the best maui-data-binding alternatives?
Popular alternatives to maui-data-binding include maui-collectionview, maui-theming and maui-app-lifecycle. See all maui-data-binding alternatives









