You probably can but you might need to modify some code as this sample was written for Silverlight. You can contact the contributor directly for questions about their sample. Also in the future you might want to post WPF-related questions in this forum http://forums.arcgis.com/forums/131-ArcGIS-API-for-Microsoft-WPF so other WPF users can benefit from your post.