add wpf 4 support