Skip to content

v3.0.0: Introducing Typed Bindings!

Compare
Choose a tag to compare
@jfversluis jfversluis released this 03 Feb 08:06
· 164 commits to main since this release
1c82eff

Typed Bindings (also known as "Compiled Bindings") revolutionize the way we make bindings using CommunityToolkit.Maui.Markup:

  • High Performance (don't require reflection)
  • Explicitly Reference Properties and their Types

Learn more
✅ Official Docs
✅ MauiConverter Sample App

// One-way (aka read-only) Binding
new Label()
  .Row(Row.Description)
  .Bind(Label.TextProperty, 
          static (StoryModel m) => m.Description)

// Two-way Binding
new Entry()
  .Bind(Entry.TextProperty, 
          static (SettingsViewModel vm) => vm.NumberOfTopStoriesToFetch, 
          static (SettingsViewModel vm, int text) => vm.NumberOfTopStoriesToFetch = text)

What's Changed

  • Use Raw String Literals for Source Generators by @brminnick in #164
  • Bump Microsoft.NET.Test.Sdk from 17.4.0 to 17.4.1 in /samples by @dependabot in #166
  • Bump Microsoft.Extensions.Http.Polly from 7.0.1 to 7.0.2 in /samples by @dependabot in #171
  • Renormalize line endings by @Youssef1313 in #173
  • Update Directory.Build.props to match CommunityToolkit.Maui by @Youssef1313 in #174
  • Replace BaseTheme with AppStyles by @HobDev in #167
  • Treat all warnings as errors in CI by @Youssef1313 in #177
  • Improve TextAlignmentExtensionsGenerator by @Youssef1313 in #172
  • Extend .Bind() to Support TypedBinding by @brminnick in #156

New Contributors

Full Changelog: 2.1.0...3.0.0