I would like to add a header to a WPF Separator (so that it looks like the top line of a GroupBox). The purpose of this is to separate the view into different sections, and I can’t use a GroupBox because the guidelines in our business say that we must use separators for that… Does someone know how to do that?
EDIT:
I know it is possible to achieve this solution by using other controls (i.e. borders and textbox), but I want to know is if an Header property can be added to the Separator object.
You can write you own custom control
And style:
And then use it: