im a little bit confused about the following problem:
I have a class called 'Games' like this
public class Game {
public int GameID { get; set; }
public string GameName { get; set; }
public int GameMaxPlayers { get; set; }
public int GamePrize { get; set; }
public List<string> GamePlayers {get;set; }
}
private list<Games> GameList;
and a list, which holdes the game-objects.
Now i add serveral games to the GameList and want to display them in a datagrid or any other control (i dont know, if datagrid is the best choice for this).
It should look like this example:
A header, maybe some labels in a stackpanel, with GameID, GameName, GameMaxPlayers, GamePrize and then below a listbox with the player names.
I tried a datagrid with edited headers, but this won't work as i expected.
Does someone have a tipp for me, how to achieve this?
Thanks in advance, best regards
Flo