void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Map_Page = ((WpfApp6.MapT)(target));
                return;

            case 2:
                this.map = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
 private void Button_InsertLocation(object sender, RoutedEventArgs e)
 {
     if (currentpage.Name == "Map_Page")
     {
         MapT   map = currentpage as MapT;
         double lat = map.AfterclickL1;
         double lng = map.AfterClickLng1;
         Console.WriteLine("lOCATION THAT WILL BE SENT IS: " + lat + " " + lng);
         currentpage = new CreateLocationPage(p, lat, lng);
     }
     else
     {
         currentpage = new MapT();
     }
     frame.Navigate(currentpage);
 }