Ejemplo n.º 1
0
 public ChartWindow(ChartWindowVM viewModel)
 {
     InitializeComponent();
     this.viewModel = viewModel;
     DataContext    = viewModel;
     CreateShapes();
 }
Ejemplo n.º 2
0
 public ChartWindow(ChartWindowVM viewModel)
 {
     InitializeComponent();
     this.viewModel = viewModel;
     DataContext = viewModel;
     CreateShapes();
 }
 public void Preview()
 {
     ChartWindowVM vm = new ChartWindowVM(this);
     ChartWindow window = new ChartWindow(vm);
     window.Owner = Application.Current.MainWindow;
     window.ShowDialog();
 }