Category / Section
How does VisualMode and VisualStyle property of WPF GroupBar control is used?
1 min read
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;