Tuesday, 22 May 2018

Behaviours Library 1.4

It was recently brought to my attention that my Behaviours library didn’t work with Xamarin.Forms 3.0. After some investigation and a small code change I brought it back to life.

Rather than re-publish it with Xamarin.Forms 3.0 compatibility, I decided to spend some time adding new functionality. Therefore, in addition to the existing functionality, v1.4 of the library adds:

  • A ConverterParameter property to InvokeCommandAction, for passing parameters to converters.
  • A SourceObject property to EventHandlerBehavior, for specifying the object on which the event can be found (the event no longer has to be on the parent in the visual tree).
  • A GoToStateAction class, for invoking visual state changes in XAML. Adding this class makes the library dependent upon Xamarin.Forms 3.0.

I’ll explore this functionality over a series of blog posts. In the meantime, the updated library can be found on NuGet, with the source on GitHub.

No comments:

Post a Comment