Ejemplo n.º 1
0
        public virtual FrameworkElement GetControl(string parentName)
        {
            Assert.ArgumentNotNull(parentName, nameof(parentName));

            var result = new StartPageTabControl(StartPage)
            {
                ParentName = parentName,
                TabStyle   = TabStyle
            };

            return(result);
        }
        public StartPageViewer()
        {
            InitializeComponent();

            DatabaseUri = DatabaseUri.Empty;

            Tabs = new StartPageTabControl(this);
            Tabs.SetValue(Grid.RowProperty, 1);
            Tabs.SetValue(Grid.ColumnProperty, 1);
            Tabs.Margin = new Thickness(4);
            TabsPanel.Children.Add(Tabs);

            ShowOnStartUp.IsChecked = AppHost.Settings.Options.ShowStartPageOnStartup;

            Notifications.RegisterSiteEvents(this, activeDatabaseChanged: HandleActiveDatabaseChanged);

            Loaded += ControlLoaded;
        }