Пример #1
0
        private void CommonInit()
        {
            _transitionController = new SpotlightTransitionController();
            _transitionController.SpotlightTransitionWillPresent += SpotlightTransitionWillPresent;
            _transitionController.SpotlightTransitionWillDismiss += SpotlightTransitionWillDismiss;

            ModalPresentationStyle = UIModalPresentationStyle.OverCurrentContext;

            TransitioningDelegate = this;
        }
Пример #2
0
 private void SpotlightTransitionWillPresent(SpotlightTransitionController controller, IUIViewControllerContextTransitioning transitionContext)
 {
     SpotlightViewControllerWillPresent?.Invoke(this, transitionContext.IsAnimated);
 }