I`m trying to get this code to work but it keeps saying I am missing a reference to BingApp. Any suggestions?private void MyMap_Loaded(object sender, RoutedEventArgs e)
{
// Associate Bing Services token provided as initialization parameter to application with
// the Bing tile layers defined in page xaml.
foreach (Layer layer in MyMap.Layers)
if (layer is TileLayer)
{
(layer as TileLayer).Token = (Application.Current as BingApp.App).BingToken;
}
}