private void ApplicationStartUp(object sender, StartupEventArgs e) { var mainWindow = _factory.CreateMainWindow(); mainWindow.customQueryTabPanel.Children.Add(mainWindow.AddControl<CustomQueryControl>(_factory.CreateCustomQueryControl())); mainWindow.BrowseTabPanel.Children.Add(mainWindow.AddControl<BrowseControl>(_factory.CreateBrowseControl())); viewModel = _factory.Resolve<ViewModel>(); mainWindow.demoTabPanel.Children.Add(mainWindow.AddControl<DemoControl>(new DemoControl(viewModel))); mainWindow.Show(); //ShowDemoGraph(); }
public DemoControl(ViewModel model) { _model = model; InitializeComponent(); Graph.SeriesSource = _model.List; }