This question is locked. New answers and comments are not allowed.
Hi
I have a jumplist with groups, and I would like to have an ímage and a string in the groupheader.
What I did was I created a class:
and then used the following code to set the GroupDescriptor
I have a jumplist with groups, and I would like to have an ímage and a string in the groupheader.
What I did was I created a class:
public class ChannelGroup : IComparable<ChannelGroup>{ public string ChannelName { get; set; } public string ChannelUrl { get; set; } public int CompareTo(ChannelGroup other) { return other.ChannelName.CompareTo(ChannelName); }}var nowdg =newGenericGroupDescriptor<ListingItem, ChannelGroup>();nowdg.KeySelector = (ListingItem t) =>{returnnewChannelGroup() {ChannelName=t.ChannelName,ChannelUrl=t.ChannelImageUrl };};nowdg.SortMode = ListSortMode.None;NowJumpList.GroupDescriptors.Add(nowdg);
It seems like the comparer doesn't work as exected I don't get any grouping at all every item in the list gets a
new group (I have checked ant the comparer that is implemented does return zero as it should (when matching).
Am I doing this all wrong?
Is there a better way to do it?
Cheers
/Jimmy