Fix animation and orientation handling on WP8.1