I've created a very basic custom control based on a listbox with two dependency properties. These dependency properties are called SourceA and SourceB. These two dependency properties are exposed for the user to bind to.The goal was for me to have multiple bind slots for collections. Which works great so far.
In my custom control I combine these two lists into one, which then gets displayed in the listbox as seen in the image below.
My question?
I need a way to distinguish the items from one another after combining them. So as I expand the custom control, I still know on the backend which items in the list came from either SourceA or SourceB. The reason being so i can add specific functionality to the items in SourceA vs SourceB.
Is there a way for me to tag the two incoming list items, within the custom control? Would an enum, interface, or wrapper be a solution?
DropBox Solution: https://www.dropbox.com/s/74su534n1szk91b/NexusEditor_03.zip?dl=0
<Grid>
<nexus:NexusEditor
SourceB="{Binding ItemList}"
SourceA="{Binding GroupList}"/>
</Grid>

