Exemple #1
0
        /// <summary>
        /// Tries the show view in current tab.
        /// </summary>
        /// <returns><c>true</c>, if show view in current tab was tryed, <c>false</c> otherwise.</returns>
        /// <param name="view">View.</param>
        /// <param name="animated">If set to <c>true</c> animated.</param>
        private bool TryShowViewInCurrentTab(ReactiveViewController view, bool animated)
        {
            // are we navigating to a tab?
            var mvxViewController = ViewControllers.OfType <BaseViewController>()
                                    .FirstOrDefault(x => x.GetType() == view.GetType());

            if (mvxViewController != null)
            {
                SelectedViewController = mvxViewController;
            }
            else
            {
                var navigationController = (UINavigationController)this.ParentViewController;
                navigationController.PushViewController(view, animated);
            }

            return(true);
        }
Exemple #2
0
        public void PopToLayer(iLayer layer)
        {
            var display = ViewControllers.OfType <IMXView>().First(vc => layer.Equals(vc.GetModel()));

            PopToViewController(display as UIViewController, true);
        }