public StackNavigationManager(IMauiContext mauiContext) { var currentInflater = mauiContext.GetLayoutInflater(); var inflater = new StackLayoutInflater( currentInflater, currentInflater.Context, this); MauiContext = mauiContext.MakeScoped(inflater, context: inflater.Context); }
public override void SetMauiContext(IMauiContext mauiContext) { var currentInflater = mauiContext.GetLayoutInflater(); var inflater = new StackNavigationManager.StackLayoutInflater( currentInflater, currentInflater.Context, CreateNavigationManager()); mauiContext = mauiContext.MakeScoped(inflater, context: inflater.Context); base.SetMauiContext(mauiContext); }