Пример #1
0
        private void SetViewInfo()
        {
            IViewsCollection views = _regionManager.Regions[this.PopWindowInfo.RegionName].ActiveViews;

            if (views.Count() > 0 && (views.ToList()[0] is FrameworkElement) && (views.ToList()[0] as FrameworkElement).DataContext is INavigationPage)
            {
                _currentView = (views.ToList()[0] as FrameworkElement).DataContext as INavigationPage;
                _currentView.PopWindowInfo = this.PopWindowInfo;
                this.CustomControl         = _currentView.CreateCustomControl();
            }
        }