Is it possible for me to have an image as a group header in listview? If so can anyone tell me how?

Nani_777Nani_777 INMember ✭✭

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>

Best Answer

Answers

Sign In or Register to comment.