sometimes WPF is too complex for me. I\'ve got my \"Window1\" holding a collection of \"Group\"s. \"Group\" is a class with a collection of \"Person\"s. In the end this should b
Well, I am not sure if this is what you want achieve but here is a way that you can try:
Assuming your classes are like these:
public class Group
{
public string Name { get; set; }
public List Contacts { get; set; }
}
public class Contact
{
public string Name { get; set; }
public bool IsOnline { get; set; }
}
You can set ListBox.ItemTemplate
as another ListBox bind to Contacts property, like:
You have to style the inner listbox a little bit.
Edit: Another solution by using TreeView