I have a string collection that is bound to a MenuItem as it's ItemsSource (the strings are user added bookmarks representing folder paths). However, within the string collection I might have a string of, say, hyphens ("----") that I want to be displayed as a Separator element. However, the Separator is different from a MenuItem element. I need some way to convert the applicable string to a Separator element.
What is the best way to handle this?