×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    63

    wptoolkit pushpin

    Can you give me simple example of using it ? I have tried very many ways but I can't get it working, below the latest. I always get null referense exception. "pushpin" stays null.

    Code:
                <maps:Map x:Name="myMap">
                    <toolkit:MapExtensions.Children>
    //                    <toolkit:Pushpin x:Name="MyPushpin" GeoCoordinate="{Binding geo, Mode=TwoWay}" Background="Blue"></toolkit:Pushpin>
                        <toolkit:Pushpin x:Name="MyPushpin" Background="Blue"></toolkit:Pushpin>
                    </toolkit:MapExtensions.Children>
                </maps:Map>
    
                InitializeComponent();
                GeoCoordinate geo = new GeoCoordinate(60.4,25.0);
                Pushpin pushpin = (Pushpin)this.FindName("MyPushpin");
                pushpin.GeoCoordinate = geo;

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    63

    Re: wptoolkit pushpin

    Answering myself: I needed MapExtensionsSetup-method from toolkit map sample.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×