Category / Section
How does VisualMode and VisualStyle property of WPF GroupBar control is used?
VisualMode property of GroupBar control is used to specify the expansion mode of the GroupBar control. GroupBar supports three expansion modes viz. Default, MultipleExpansion and StackMode.
C#
GroupBar1.VisualMode = VisualMode.MultipleExpansion;
VisualStyle property of GroupBar control is used to apply different styles to the GroupBar control. VisualStyle property of GroupBar can take the following values.
- Default
- Office2003
- Office2007Blue
- Office2007Black
- Office2007Silver
- Blend
C#
GroupBar1.VisualStyle = VisualStyle.Office2007Blue;