Maui.Markup: [BUG] Typed bindings is not working as expected.

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the “Reporting a bug” section on Contributing file?

Current Behavior

Typed binding breaks the working behavior of the controls, whereas classic binding works in the way it is designed.

Expected Behavior

Like how it works in classic binding, only the approach changes with improved type safety.

Steps To Reproduce

  1. Clone the repository
  2. Run the sample app
  3. It hosts two controls on the Main page of the app, both are pickers, one with typed binding and the other with classic binding
  4. Both are bound to the same Index property, which means a change in one picker should reflect in the other
  5. Now change the value in the type picker and no response in the classic picker (the issue)
  6. Then change the value in the classic picker, there is a change in the type picker (actual behavior)

Link to public reproduction project repository

https://github.com/egvijayanand/markup-issue-272

Environment

- .NET MAUI C# Markup CommunityToolkit: v4.0.0
- OS: Windows 11 v10.0.22631.2715
- .NET MAUI: v8.0.3

Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15

Most upvoted comments

It may be possible. It’d require a lot of forethought and unit testing to make sure we don’t break any default behavior, though; I’m not sure if the TypedBinding class is meant to handle that scenario.

Not fully sure, but seems possible. Let me try with a sample and get back on this.