Skip to content

Commit

Permalink
Merge pull request #2876 from VitalyKnyazev/master
Browse files Browse the repository at this point in the history
Fixing runtime warning
  • Loading branch information
dansiegel authored Jun 3, 2023
2 parents 2e2a080 + 6c30d82 commit 264869a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Maui/Prism.Maui/Mvvm/ViewModelLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private static void OnViewModelPropertyChanged(BindableObject bindable, object o
if (newValue == null || bindable.BindingContext != null)
return;
else if(newValue is Type)
bindable.SetValue(AutowireViewModelProperty, true);
bindable.SetValue(AutowireViewModelProperty, ViewModelLocatorBehavior.Automatic);
}

internal static void Autowire(object view)
Expand Down

0 comments on commit 264869a

Please sign in to comment.