private static void CreateSearchManager()
        {
            if(_manager == null)
            {
                Bing.Maps.Map m = new Bing.Maps.Map();

                if (!string.IsNullOrEmpty(InTheHand.FormsMaps._serviceToken))
                {
                    m.Credentials = InTheHand.FormsMaps._serviceToken;
                }
                _manager = m.SearchManager;
            }
        }
        public MainPage()
        {
            this.InitializeComponent();
            this.Loaded += delegate {
                _bingMap           = new Bing.Maps.Map();
                _bingMap.Center    = new Location(50.07574, 14.416);
                _bingMap.ZoomLevel = 17;

                MapTileLayer mapTileLayer = new MapTileLayer();
                mapTileLayer.GetTileUri += delegate(object sender, GetTileUriEventArgs e) {
                    Rect mercBounds = GlobalMercator.TileBounds(new Tile(e.X, e.Y), e.LevelOfDetail);
                    e.Uri = new Uri(string.Format(_wmsUrl, mercBounds.Left, Math.Abs(mercBounds.Bottom), mercBounds.Right, Math.Abs(mercBounds.Top)));
                };

                _bingMap.TileLayers.Add(mapTileLayer);
                this.Content = _bingMap;
            };
        }