Ask a questionAsk a question
 

AnswerLibrary of the BingApp

  • Thursday, November 05, 2009 12:35 PMShaning Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    Hi!  I am a beginner in this field.  In an exercise, I used the source code from http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/index.html, Topic: Using the Bing Maps token service.  I got an error in Page.xaml.cs for BingApp.App: Error :
    The type or namespace name 'BingApp' could not be found (are you missing a using directive or an assembly reference?)
    I don't know how to declare the BingApp?  What is its library?
    Can anyone help?  Thanks.
    	private void MyMap_Loaded(object sender, RoutedEventArgs e)
    {
    // Associate Bing Maps token with the Virtual Earth tile layer defined in Page.xaml
    TileLayer layer = MyMap.Layers["BingLayer"] as TileLayer;
    layer.Token = (Application.Current as BingApp.App).BingToken;
    }

Answers

All Replies