コード例 #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);
        }
コード例 #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);
        }