Hi Helmut,
Thank you for contacting Syncfusion support.
We have checked your query “How to display all the GroupBar items in expanded mode instead of selecting it every time”. We have prepared a sample based on your requirement in which we have displayed all group bar items by setting its IsExpanded property as true in GroupBar. Please find the code snippet, screenshot and sample for the same from below location:
<syncfusion:GroupBar Name="gBar" Margin="10" ItemHeaderHeight="25" ItemsSource="{Binding SampleList}"
Width="300" HorizontalAlignment="Center" VisualMode="MultipleExpansion" >
<syncfusion:GroupBar.ItemContainerStyle>
<Style TargetType="{x:Type syncfusion:GroupBarItem}" BasedOn="{StaticResource Office2007BlueGroupBarItemStyle}">
<Setter Property="Header" Value="{Binding}"/>
<Setter Property="HeaderTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" FontWeight="Bold" Margin="3" VerticalAlignment="Center"/>
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
<Setter Property="Content" Value="{Binding}"/>
<Setter Property="ContentTemplate" Value="{StaticResource template}"/>
<Setter Property="IsExpanded" Value="True"/>
</Style>
</syncfusion:GroupBar.ItemContainerStyle>
</syncfusion:GroupBar> |
Please try this above solution and let us know if it is helpful.
Regards,
Jagadeesan