Skip to content

Commit

Permalink
setting the parent fixes the BindingContext of the view
Browse files Browse the repository at this point in the history
  • Loading branch information
inforithmics committed Aug 12, 2023
1 parent e775d99 commit 0a64b56
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ static PageHandler CreatePageHandler(IPopup virtualView)
{
var mauiContext = virtualView.Handler?.MauiContext ?? throw new NullReferenceException(nameof(IMauiContext));
var view = (View?)virtualView.Content ?? throw new InvalidOperationException($"{nameof(IPopup.Content)} can't be null here.");
#if !NET8_0_OR_GREATER
view.SetBinding(BindingContextProperty, new Binding { Source = virtualView, Path = BindingContextProperty.PropertyName });
#endif
var contentPage = new ContentPage
{
Content = view
Expand Down

0 comments on commit 0a64b56

Please sign in to comment.