title: Aligning images on WPF bing maps
body: <p>Just ran into issue that aligning is not working for WPF Bing Maps if it's specified while creating image:</p>
  
  <pre><code>var element = new Image()
          {
              Source = ResourceManager.VesselIcon,
              Opacity = 0.9,
              Stretch = System.Windows.Media.Stretch.None,
  
              VerticalAlignment = System.Windows.VerticalAlignment.Center, // Is not working
              HorizontalAlignment = System.Windows.HorizontalAlignment.Center
          };
  </code></pre>
  
  <p>Fortunatley WPF Bing Maps API do provide "PositionOrigin" structure. So one can specify alignment while adding shape to map itself:  </p>
  
  <pre><code>Location location = Helper.SomeLocation();
  this.mapLayer.AddChild(element, location, PositionOrigin.Center);
  </code></pre>
  
  <p>Hope it will help somebody</p>