How can a separator be added between items in an ItemsControl

Posted by Grandpappy on Stack Overflow See other posts from Stack Overflow or by Grandpappy
Published on 2010-03-24T20:40:44Z Indexed on 2010/03/24 20:43 UTC
Read the original article Hit count: 814

Filed under:
|
|

I'm needing to display a list of numbers from a collection in an Items Control. So the items are: "1", "2", "3".

When they are rendered, I need them separated by a comma (or something similar). So the above 3 items would look like this: "1, 2, 3".

How can I add a separator to the individual items, without having one tacked on the end of the list?

I am not stuck on using an ItemsControl, but that's what I had started to use.

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf