public void OpenView(ViewDetails details)
        {
            var registeredView = registeredViews[details.Name];

            var region = regionManager.Regions[registeredView.Region];

            var content = registeredView.ViewDelegate();

            region.Add(content, details.Name);
            region.Activate(content);
        }
        public void Register(ViewDetails viewDetails, string region, Func <IHeadedContent> view)
        {
            var item = new View
            {
                Detail       = viewDetails,
                ViewDelegate = view,
                Region       = region
            };

            registeredViews.Add(viewDetails.Name, item);
        }
        public bool ActivateView(ViewDetails details)
        {
            var registeredView = FindView(details.Name);

            if (!registeredView.HasValue)
            {
                return(false);
            }

            var region = regionManager.Regions[registeredView.Value.Region];
            var view   = region.GetView(details.Name);

            if (view == null)
            {
                return(false);
            }

            region.Activate(view);
            return(true);
        }