I have a MenuItem that I’d like to populate with sub-items. However, I’d like for it to keep the items it already has:
<MenuItem Header="_Profiles">
<MenuItem Header="_New Profile..." />
<Separator />
<!-- Databind here! -->
</MenuItem>
However, when I try to use normal declarative databinding it eliminates the two subitems I’ve declared.
I’m sure there has to be a way to do this but I can’t figure it out and I’m not sure any of my Google searches have been that good; can anyone help?
Thanks!
One approach is to utilize a
CompositeCollection: