This code you dropped was important for the Windows Phone version of this sample.