I have three ienumerable collections that are being populated from a web service. Lets call them _division, _league, _team.
I have bound to the first collection _divison using
I have bound to the first collection _divison using
private IEnumerable<Divison> _Division; |
_Division = result.Object; |
treeResults.ItemsSource = _Division; |
treeResults.DisplayMemberPath="DivisionName"; |
treeResults.SelectedValuePath="DivisionID"; |
Now i want to be able to load the next node with _League but only those who should apear in _division (i.e those from _League who have a _League.DivisionID == _Division.DivisionID).
And i finally want to be able to load _teams that belong to the loaded _League.
I also want to be able to set an image next to the node based on the selection. I have looked at all of your examples and cant quite get this to work.
All help greatfully appreciated.