public MainWindow() { ViewModel = new AppViewModel(); this.DataContext = ViewModel; InitializeComponent(); }