From the course: .NET MAUI: Beyond the Basics

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Value converters with multiple bindings

Value converters with multiple bindings - .NET MAUI Tutorial

From the course: .NET MAUI: Beyond the Basics

Value converters with multiple bindings

- [Instructor] In the last video we discussed some of the limitations of value converters and the parameters when a converter needs to have input from several different properties to calculate the correct value. With standard value converters, we had to do things like try to pass in a reference to the whole ViewModel, which led to problems with reusability of the value converter as well as when to notify the value converter that the entire object had changed when only a few properties may be what is of interest. The solution to this is creating a value converter with multibindings. Unlike a traditional value converter, this type of value converter can be bound to and listen to the changes from several independent properties. This also makes them much easier to reuse as they can be directly bound to multiple value types instead of an entire object of a known type with multiple properties. So we'll continue on with our…

Contents