I'd like to create a WPF control for a window tab, and I want it to have a particular shape. Something like this;
+------------------------------+
| |
* | |
| |
+--+ +--+
6 | | 6
+------------------------------------+
6 stretching section 6
So the little tabs at the bottom left and bottom right are fixed size; 6x6, roughly. But now I want the centre section to stretch out to the width of whatever container I slap it into.
I'm using a Path object at the moment, but I can't figure out how to get a stretching section, or even if Path is the right way to go.
Can anyone suggest the best way to create this kind of half-stretchable shape?