title: ZIndex of pushpins in WP7 bing map control
body: <p>I have a Bing silverlight map control for Windows phone 7. I am trying to display on top currently selected pushpin. Here is the snippet:</p>
  
  <pre><code>&lt;my:Map x:Name="map" Canvas.ZIndex="1" CredentialsProvider="{StaticResource Credentials}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                  CopyrightVisibility="Collapsed" LogoVisibility="Collapsed"&gt;
              &lt;my:MapItemsControl x:Name="Pushpins"&gt;
                  &lt;my:MapItemsControl.ItemTemplate &gt;
                      &lt;DataTemplate&gt;
                          &lt;my:Pushpin Location="{Binding Location}" Canvas.ZIndex="{Binding Zindex}" PositionOrigin="0.515625,0.859375" Content="{Binding Id}" Template="{StaticResource PushpinControlTemplate}" Tap="Pushpin_Tap"/&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/my:MapItemsControl.ItemTemplate&gt;
              &lt;/my:MapItemsControl&gt;
  &lt;/my:Map&gt;
  </code></pre>
  
  <p>The control is ignoring the ZIndex. Am I missing something or the ZIndex is not supported. The ZIndex is property of a class which implements INotifyPropertyChanged</p>
  
  <pre><code>private int _zIndex;
      public int Zindex
      {
          get { return _zIndex; }
          set
          {
              _zIndex = value;
              OnPropertyChanged(new PropertyChangedEventArgs("Zindex"));
          }
      }
  </code></pre>