[regression/8.0.0-rc.2.9373] MultiBinding Throwing Object reference not set to an instance of an object. #18123
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
fixed-in-8.0.10
fixed-in-8.0.100-rc.2.9530
Look for this fix in 8.0.100-rc.2.9530
high
It doesn't work at all, crashes or has a big impact.
i/regression
This issue described a confirmed regression on a currently supported version
platform/windows 🪟
t/bug
Something isn't working
Milestone
Description
I am getting the following error
at Microsoft.Maui.Controls.MultiBinding.Apply(Object context, BindableObject targetObject, BindableProperty targetProperty, Boolean fromBindingContextChanged, SetterSpecificity specificity)
at Microsoft.Maui.Controls.BindableObject.RemoveBinding(BindableProperty property, BindablePropertyContext context, SetterSpecificity specificity)
at Microsoft.Maui.Controls.BindableObject.RemoveBinding(BindableProperty property, SetterSpecificity specificity)
at Microsoft.Maui.Controls.Setter.UnApply(BindableObject target, SetterSpecificity specificity)
at Microsoft.Maui.Controls.TriggerBase.OnConditionChanged(BindableObject bindable, Boolean oldValue, Boolean newValue)
at Microsoft.Maui.Controls.BindingCondition.OnBoundPropertyChanged(BindableObject bindable, Object oldValue, Object newValue)
at Microsoft.Maui.Controls.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, SetterSpecificity specificity, Boolean silent)
at Microsoft.Maui.Controls.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes, SetterSpecificity specificity)
at Microsoft.Maui.Controls.BindingExpression.ApplyCore(Object sourceObject, BindableObject target, BindableProperty property, Boolean fromTarget, SetterSpecificity specificity)
at Microsoft.Maui.Controls.BindingExpression.Apply(Boolean fromTarget)
at Microsoft.Maui.Controls.BindingExpression.BindingExpressionPart.b__50_0()
at Microsoft.Maui.Controls.DispatcherExtensions.DispatchIfRequired(IDispatcher dispatcher, Action action)
at Microsoft.Maui.Controls.BindingExpression.BindingExpressionPart.PropertyChanged(Object sender, PropertyChangedEventArgs args)
at Microsoft.Maui.Controls.BindingExpression.WeakPropertyChangedProxy.OnPropertyChanged(Object sender, PropertyChangedEventArgs e)
at Microsoft.Maui.Controls.BindableObject.OnPropertyChanged(String propertyName)
at MauiApp3333.ViewModel.set_Mode(String value) in XXXXXXXXXXXXXXXX\MauiApp3333\MauiApp3333\MainPage.xaml.cs:line 15
MauiApp3333.zip
Steps to Reproduce
Expected Behavior
After Clicking Button Edit
Button Edit Text Change to Submit
Button Delete Text Change to Cancel
After Clicking Button Cancel
Button Cancel Text Change to Delete
Button Submit Text Change to Edit
Link to public reproduction project repository
No response
Version with bug
8.0.0-rc.2.9373
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.0-rc.1.9171
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: