public BuilderApplication()
 {
     CatalogScreenVisibility = Visibility.Visible;
     BuilderScreenVisibility = Visibility.Collapsed;
     NewappScreenVisibility = Visibility.Collapsed;
     SitesCatalogVisibility = Visibility.Collapsed;
     WelcomeVisibility = Visibility.Collapsed;
     SettingsPageVisibility = Visibility.Collapsed;
     AllExtensions = new ObservableCollection<Extension>();
     WindowManager = new WindowManager();
     Culture = System.Threading.Thread.CurrentThread.CurrentCulture;
     urls = new ApplicationUrls();
     Urls.ProxyUrl = string.Empty;
     BaseUrl = Application.Current.Host.Source.ToString();
 }
        public View(IApplicationServices applicationServices=null, WindowManager manager = null)
        {
            urls = new ApplicationUrls();
            Urls.ProxyUrl = string.Empty;
            Culture = System.Threading.Thread.CurrentThread.CurrentCulture;
            Content = null;
            setInstance(this);
            WindowManager = manager ?? new WindowManager();
            VerticalContentAlignment = System.Windows.VerticalAlignment.Stretch;
            HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch;

            MapApplication.SetApplication(this);
            IApplicationAdmin appAdmin = MapApplication.Current as IApplicationAdmin;
            if (appAdmin != null)
            {
                if (appAdmin.ConfigurableControls != null)
                {
                    appAdmin.ConfigurableControls.Clear();
                    appAdmin.ConfigurableControls.CollectionChanged -= ConfigurableControls_CollectionChanged;
                    appAdmin.ConfigurableControls.CollectionChanged += ConfigurableControls_CollectionChanged;
                }
            }

            SidePanelHelper.Reset();
        }