Easy one, I would like to have a GroupBox with no header space
The closest thing is a border, but the border "by default" does not have the same Style as the group box.
What's the easiest way (least xaml / code) to get the desired GroupBox ?
Thanks
Best Answer
If you really don't want a border, then there can be these 2 solutions:
(1) Edit template in blend :
Search for section
Delete this (above mentioned) section.. You have just removed the "gap"
Panel.ZIndex="-1"
in the border that was enclosing the section you just deleted (it looks like<Border BorderBrush="White" BorderThickness= ...
)(2) Use duplicate GroupBox and flip it horizontally and place it beneath original groupbox:
Put this code below your groupbox (assuming your groupbox's name is '
OriginalGroupbox
')Enclose both these GroupBox in a
Grid
like this: