Added wpf helper class