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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
Gridlike this: