Example #1
0
        private void contacts_SearchCompleted(object sender, Microsoft.Phone.UserData.ContactsSearchEventArgs e)
        {
            _contacts = AlphaKeyGroup <Contact> .CreateGroups(e.Results, System.Threading.Thread.CurrentThread.CurrentUICulture,
                                                              (Contact c) => { return(c.DisplayName); }, true);

            _allContacts = e.Results.ToList();
        }
Example #2
0
        private List <AlphaKeyGroup <ContactItem> > alphaGroupSorting(IEnumerable <ContactItem> items)
        {
            var returnGroup = AlphaKeyGroup <ContactItem> .CreateGroups(items, (ContactItem s) => {
                return(s.ContactName);
            }, true);

            return(returnGroup);
        }