If you really don't want a border, then there can be these 2 solutions: (1) Edit template in blend : Right click on GroupBox > Edit Template > Edit Copy > OK Search for section Border. OpacityMask> ...... ... ...
If you really don't want a border, then there can be these 2 solutions: (1) Edit template in blend : Right click on GroupBox > Edit Template > Edit Copy > OK Search for section ...... Delete this (above mentioned) section.. You have just removed the "gap" Now this will work if you do not set the header (as you have shown in example). However if you set the header, it'll go behind the border. So to correct this, just set Panel.
ZIndex="-1" in the border that was enclosing the section you just deleted (it looks like Enclose both these GroupBox in a Grid like this: ... ...
Thanks! Reply #1 is the way to go.. I encapsulated the template in it's style, and now if I have a GroupBox that don't need the header, I apply that style. – PBelanger Jan 23 '10 at 13:47.
You can emulate the style of the group box by changing your border to have rounded colors and a different color. Here is a border that looks pretty close to the GroupBox border: Border.
One problem I see with this solution is that the GroupBox control will change it's style based on the loaded styles for a GroupBox (like the OS or other styles defined in app. Xaml and so on). But setting the Border's property as such won't follow the styles – PBelanger Jan 21 '10 at 15:55.
I was looking for a similar solution. I needed a group box style where the border was closed only when there is no header text. I'm not convinced it's the nicest solution, but it works fine... We have a converter (works with text only atm): public class GroupBoxHeaderVisibilityConverter : IMultiValueConverter { #region IMultiValueConverter Members public object Convert(object values, System.
Type targetType, object parameter, System.Globalization. CultureInfo culture) { ContentPresenter header = values0 as ContentPresenter; if (header! = null) { string text = header.
Content as string; if (string. IsNullOrEmpty(text)) { return 0.0; } } return values1; } public object ConvertBack(object value, System. Type targetTypes, object parameter, System.Globalization.
CultureInfo culture) { throw new System. NotImplementedException(); } #endregion } and the modifications to the groupbox style.
Building on Mihir Gokani's answer, you can change the default template to use a Trigger to change the header's padding to nothing, when the header is null or empty. Use the following style on the GroupBox, should fix it. Note the only addition is.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.