Maybe this could help you: Active Directory - Roles of a user
In this post the System.DirectoryServices.AccountManagement-Namespace is used. I think this is the better way for a WPF-Application and Roles.GetRolesForUser seems to be used in ASP-Web-Applications.
I hope this could help you.