public MainWindow() { this.InitializeComponent(); viewModel = new ViewModelMessageing { window = this }; }