private void GetStarships_Click(object sender, EventArgs e) { List <Starship> starship = StarshipViewModel.GetAllStarships(); ListElements.Items.Clear(); foreach (Starship sta in starship) { ListElements.Items.Add(sta); } }