How does this relate to WPF for doing the exact same thing?