private void GetVehicles_Click(object sender, EventArgs e) { List <Vehicle> vehicles = VehicleViewModel.GetAllVehicles(); ListElements.Items.Clear(); foreach (Vehicle ve in vehicles) { ListElements.Items.Add(ve); } }