Useful utility functions and extensions for Windows Phone