maui-data-binding
Installation
SKILL.md
.NET MAUI Data Binding
Don't specify redundant binding modes
Set Mode explicitly only when overriding the default. Most properties already have the right default:
<!-- ✅ Defaults — omit Mode -->
<Label Text="{Binding Score}" /> <!-- OneWay is the default -->
<Entry Text="{Binding UserName}" /> <!-- TwoWay is the default -->
<Switch IsToggled="{Binding DarkMode}" /> <!-- TwoWay is the default -->
<!-- ✅ Override when needed -->
<Label Text="{Binding Title, Mode=OneTime}" />
<Entry Text="{Binding SearchQuery, Mode=OneWayToSource}" />
<!-- ❌ Redundant — just noise -->
<Label Text="{Binding Score, Mode=OneWay}" />
<Entry Text="{Binding UserName, Mode=TwoWay}" />
Related skills