added wpf-stuff