Ejemplo n.º 1
0
        public StackNavigationManager(IMauiContext mauiContext)
        {
            var currentInflater = mauiContext.GetLayoutInflater();
            var inflater        =
                new StackLayoutInflater(
                    currentInflater,
                    currentInflater.Context,
                    this);

            MauiContext =
                mauiContext.MakeScoped(inflater, context: inflater.Context);
        }
Ejemplo n.º 2
0
        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);
        }