Fixes #336. Adds WPF sample app.