private void gitRepos_Click(object sender, RoutedEventArgs e) { GithubRest git = new GithubRest(gitUsername.Text, gitPassword.Password); GitRepos = git.GetRepos(); // Create a list of Repos that have issues List<string> repos_names = new List<string>(); foreach (Git2Bit.GitModels.Repository repo in GitRepos) { if(repo.has_issues) { repos_names.Add(repo.full_name); } } gitRepositories.ItemsSource = repos_names; }