private void OnDashboardsView(object sender, EventArgs e) { if (DashboardsView == null) { DashboardsView = new DashboardsView(); } WorkArea.Content = DashboardsView; }
protected override void OnViewLoaded(object view) { base.OnViewLoaded(view); this.view = (DashboardsView)view; AppState.Dashboards.CollectionChanged += DashboardViews_CollectionChanged; AppState.Dashboards.ActiveDashboardChanged += DashboardViews_ActiveDashboardChanged; foreach (var d in AppState.Dashboards) { AddDashboard(d); } }