BindingMode.Create crashes with Call was not intercepted - what am i doing wrong? #27107
Unanswered
DullingWine
asked this question in
General
Replies: 1 comment 1 reply
-
Are you setting BindingContext? If not, then, perhaps you need |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to convert my reflection based multiple property bindings to strongly typed ones, but they straight up crash. For example:
(obviously using community markup)
Above crashes with:
System.InvalidOperationException: Call to Create<ViewModels.BillViewModel, System.DateOnly>() was not intercepted.
at Microsoft.Maui.Controls.BindingBase.Create[BillViewModel,DateOnly](Func`2 getter, BindingMode mode, IValueConverter converter, Object converterParameter, String stringFormat, Object source, Object fallbackValue, Object targetNullValue)
Note this works if i used reflection based methods:
Single parameter strongly typed binding is also fine.
I must be doing something wrong? Can anyone tell what? This is latest Maui (dotnet 9).
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions