What's Changed
We’ve re-added string-based bindings for Gesture extensions! Apologies for removing them in 5.0.0.
.BindTapGesture(nameof(TrendsViewModel.TappedCommand, source: new RelativeBindingSource(RelativeBindingSourceMode.FindAncestorBindingContext, typeof(TrendsViewModel)))
Note: These string-based gesture extensions have been moved to a new class,
StringGesturesExtensions
. Here's an example to call the methods directly in lieu of using it as an extension method (above):StringGesturesExtensions.BindTapGesture(myLabel, nameof(TrendsViewModel.TappedCommand), commandSource: new RelativeBindingSource(RelativeBindingSourceMode.FindAncestorBindingContext, typeof(TrendsViewModel)));Thanks @egvijayanand! 🙌
String-based bindings are not trim safe, but they are currently the only way to use RelativeBindingSource
.
- Bump Newtonsoft.Json and Microsoft.NET.Test.Sdk in /samples by @dependabot in #337
- Add String-based Gesture Extensions by @brminnick in #339
- Bump PolySharp from 1.14.1 to 1.15.0 in /samples by @dependabot in #338
Full Changelog: 5.0.0...5.1.0