public ServersFound() { InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterOwner; ViewModel = new ServersFoundViewModel(); DataContext = ViewModel; Closing += (o, e) => ViewModel.StopLooking(); }