title: LongListSelector with String group header
body: <p>I have this class <code>AlphaKeyGroup</code>:</p>
  
  <pre><code>public class AlphaKeyGroup&lt;T&gt; : List&lt;T&gt;
  {
      /// &lt;summary&gt;
      /// The delegate that is used to get the key information.
      /// &lt;/summary&gt;
      /// &lt;param name="item"&gt;An object of type T&lt;/param&gt;
      /// &lt;returns&gt;The key value to use for this object&lt;/returns&gt;
      public delegate string GetKeyDelegate(T item);
  
      /// &lt;summary&gt;
      /// The Key of this group.
      /// &lt;/summary&gt;
      public string Key { get; private set; }
  
      /// &lt;summary&gt;
      /// Public constructor.
      /// &lt;/summary&gt;
      /// &lt;param name="key"&gt;The key for this group.&lt;/param&gt;
      public AlphaKeyGroup(string key)
      {
          Key = key;
      }
  
      /// &lt;summary&gt;
      /// Create a list of AlphaGroup&lt;T&gt; with keys set by a SortedLocaleGrouping.
      /// &lt;/summary&gt;
      /// &lt;param name="slg"&gt;The &lt;/param&gt;
      /// &lt;returns&gt;Theitems source for a LongListSelector&lt;/returns&gt;
      private static List&lt;AlphaKeyGroup&lt;T&gt;&gt; CreateGroups(SortedLocaleGrouping slg)
      {
          List&lt;AlphaKeyGroup&lt;T&gt;&gt; list = new List&lt;AlphaKeyGroup&lt;T&gt;&gt;();
  
          foreach (string key in slg.GroupDisplayNames)
          {
              list.Add(new AlphaKeyGroup&lt;T&gt;(key));
          }
  
          return list;
      }
  
      /// &lt;summary&gt;
      /// Create a list of AlphaGroup&lt;T&gt; with keys set by a SortedLocaleGrouping.
      /// &lt;/summary&gt;
      /// &lt;param name="items"&gt;The items to place in the groups.&lt;/param&gt;
      /// &lt;param name="ci"&gt;The CultureInfo to group and sort by.&lt;/param&gt;
      /// &lt;param name="getKey"&gt;A delegate to get the key from an item.&lt;/param&gt;
      /// &lt;param name="sort"&gt;Will sort the data if true.&lt;/param&gt;
      /// &lt;returns&gt;An items source for a LongListSelector&lt;/returns&gt;
      public static List&lt;AlphaKeyGroup&lt;T&gt;&gt; CreateGroups(IEnumerable&lt;T&gt; items, CultureInfo ci, GetKeyDelegate getKey, bool sort)
      {
          SortedLocaleGrouping slg = new SortedLocaleGrouping(ci);
          List&lt;AlphaKeyGroup&lt;T&gt;&gt; list = CreateGroups(slg);
  
          foreach (T item in items)
          {
              int index = 0;
              if (slg.SupportsPhonetics)
              {
                  //check if your database has yomi string for item
                  //if it does not, then do you want to generate Yomi or ask the user for this item.
                  //index = slg.GetGroupIndex(getKey(Yomiof(item)));
              }
              else
              {
                  index = slg.GetGroupIndex(getKey(item));
              }
              if (index &gt;= 0 &amp;&amp; index &lt; list.Count)
              {
                  list[index].Add(item);
              }
          }
  
          if (sort)
          {
              foreach (AlphaKeyGroup&lt;T&gt; group in list)
              {
                  group.Sort((c0, c1) =&gt; { return ci.CompareInfo.Compare(getKey(c0), getKey(c1)); });
              }
          }
  
          return list;
      }
  
  }
  </code></pre>
  
  <p>And this is how i create my <code>LongListSelector</code> ItemsSource:</p>
  
  <pre><code>foreach (string item in playlistRep.playlistDic.Keys)
  {
       playlistCollection.Add(new PlaylistItem(item, playlistRep.playlistDic[item].Count));
  }
  
  List&lt;AlphaKeyGroup&lt;PlaylistItem&gt;&gt; DataSource = AlphaKeyGroup&lt;PlaylistItem&gt;.CreateGroups(playlistCollection,
              System.Threading.Thread.CurrentThread.CurrentUICulture,
              (PlaylistItem s) =&gt; { return s.Name; }, true);
  
  playlistList.ItemsSource = DataSource;
  </code></pre>
  
  <p>And i get a LongListSelector with a keys like this:</p>
  
  <pre><code>"A"
  a...
  a...
  a....
  "B"
  "C"
  c.....
  c..
  c..
  
  ........
  </code></pre>
  
  <p>And i want to know what should i do to get the group name with something like this:</p>
  
  <pre><code>"Playlist"
  bla bla bla
  
  "Vimeo Playlist"
  bla
  bla
  bla
  </code></pre>
  
  <p>I want to be able create a header with string and not chars</p>