Simple ListView?
Hi,
i can't find something like a simple Listview to Display a Image and a Text Below.
There seems to be something available in GroupBar, but there i always would need to select an item to see details.
any other way?
thx,
Helmut
SIGN IN To post a reply.
3 Replies
JP
Jagadeesan Pichaimuthu
Syncfusion Team
February 28, 2019 09:24 AM UTC
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
HW
Helmut Wahrmann
February 28, 2019 08:55 PM UTC
Hi Jagadeesan,
Works perfect.
thanks for the quick response,
Helmut
JP
Jagadeesan Pichaimuthu
Syncfusion Team
March 1, 2019 06:24 AM UTC
Hi Helmut,
Thanks for the update.
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you.
Regards,
Jagadeesan
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
HW Helmut Wahrmann
- Feb 27, 2019 11:11 AM UTC
- Mar 1, 2019 06:24 AM UTC