상속: System.Windows.Controls.Grid, IMapControl
예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 24 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 25 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 3:
                this.MyMapControl = ((Mapsui.UI.Wpf.MapControl)(target));
                return;

            case 4:

            #line 30 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);

            #line default
            #line hidden
                return;

            case 5:
                this.Longitude = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.Latitude = ((System.Windows.Controls.TextBox)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.Latitude.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged_1);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        public static MapInfo GetMapInfo(this MouseButtonEventArgs e, MapControl mapControl)
        {
            var screenPosition = e.GetPosition(mapControl).ToMapsui();

            return(mapControl.GetMapInfo(screenPosition));
        }