I want to have an Image as a list view group header.
can anyone tell me how to do it .
I tried the following code but it throws an exception
<ListView x:Name ="lstView" IsGroupingEnabled="true" GroupDisplayBinding="{Binding LongName}" GroupShortNameBinding="{Binding ShortName}"> <ListView.ItemTemplate> <DataTemplate> <TextCell Text="{Binding Name}" Detail = "{Binding Comment}" /> </DataTemplate> </ListView.ItemTemplate> <ListView.GroupHeaderTemplate> <DataTemplate> <Image Source="{Binding Img"/> </DataTemplate> </ListView.GroupHeaderTemplate> </ListView>
Answers
Found it myself!!!!!!
yes it is possible