maui-data-binding

Set up .NET MAUI data bindings with compiled bindings and value converters.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ojrojas/AgentsInstructions --skill maui-data-binding-ojrojas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maui-data-binding
Source: https://github.com/ojrojas/AgentsInstructions/tree/main/.claude/skills/dotnet-maui/skills/maui-data-binding
Command: npx skills add https://github.com/ojrojas/AgentsInstructions --skill maui-data-binding-ojrojas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the complexity of .NET MAUI XAML and C# data bindings, including compiled bindings, property change notification, and various binding modes.

Core Features & Use Cases

  • Compiled Bindings: Enable fast, type-safe data binding with x:DataType.
  • INotifyPropertyChanged / ObservableObject: Implement change notifications for ViewModel properties.
  • IValueConverter: Create custom value and multi-value converters for complex data transformations.
  • Use Case: If you're developing a .NET MAUI application and need to bind UI controls to ViewModel properties, this skill provides the guidance and tools you need.

Quick Start

Set up compiled data bindings in your XAML by adding 'x:DataType="yourViewModelNamespace:YourViewModel"' at the page root.

Frequently Asked Questions about maui-data-binding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up compiled bindings in .NET MAUI XAML?

Compiled bindings in .NET MAUI are set up by adding x:DataType with your ViewModel namespace to the page root, enabling fast and type-safe data binding resolution at compile time.

What is the best way to implement property change notification in a MAUI ViewModel?

Property change notification in a .NET MAUI ViewModel is implemented using INotifyPropertyChanged or an ObservableObject base class, ensuring the UI updates automatically when ViewModel properties change.

How do I create custom data transformations for .NET MAUI data binding?

Custom data transformations during .NET MAUI data binding are achieved by implementing IValueConverter, allowing you to convert and format bound values between the source and target UI controls.

Do I need external libraries to use compiled bindings in .NET MAUI?

No external libraries are needed for .NET MAUI compiled bindings; the setup requires only C# and XAML knowledge to configure x:DataType and manage binding modes natively.

Why are my .NET MAUI XAML data bindings not updating the UI?

UI updates fail in .NET MAUI data binding when ViewModels lack proper change notification via INotifyPropertyChanged, or when x:DataType is missing for compiled binding type resolution.

Can I use multi-value converters with .NET MAUI data binding?

Yes, .NET MAUI data binding supports custom multi-value converters through the IValueConverter interface, enabling complex data transformations across multiple bound properties for UI controls.