public MainWindow() { InitializeComponent(); var viewModel = new StockViewerViewModel(); DataContext = viewModel; Loaded += (sender, args) => viewModel.OnLoaded(); }
public MainWindow() { InitializeComponent(); var viewModel = new StockViewerViewModel(); DataContext = viewModel; Loaded += (sender, args) => viewModel.OnLoaded(); }