I have an observable collection of nested objects which I am displaying in a TreeView in WPF.
public class NestedContainer
{
public FXR1.FXContainer myContainer { get; set; }
public string XID { get { return myContainer.XID; } }
public FXR1.FXActionData ActionData { get { return myContainer.ActionData; } }
public FXR1.FXModifier Modifier { get { return myContainer.Modifier; } }
public List childContainers { get; set; } = new List();
}
I was successful in creating the nested structure that I want, using the following XAML code it displays in a TreeView like so:
However, I am also trying to display the ActionData and Modifier (if any) associated with each Container, as items in the TreeView located just below the Container's childContainers. These items do not have child containers of their own, so they are just additional pieces of info belonging to each Container. My initial thought after some research was to use Multibinding and bind ActionData and Modifier in addition to childContainers, but I was unable to find any similar examples of this so I am unsure if this is the ideal solution. My knowledge of WPF is very entry level, so I apologize if this is a very basic problem or if I'm missing an obvious solution. Any help is very much appreciated.
