${mapping_ViewBoundsEventArgs_Title}
${mapping_ViewBoundsEventArgs_Exception}
Inheritance: System.EventArgs
 private void MyMap_ViewBoundsChanged(object sender, ViewBoundsEventArgs e)
 {
     if (e.OldViewBounds.IsEmpty)
     {
         this.MyMap.ScreenContainer.Children.Add(window);
     }
 }
 private void Map_ViewBoundsChanging(object sender , ViewBoundsEventArgs e)
 {
     SuppressSlider();
 }
 private void Map_ViewBoundsChanged(object sender , ViewBoundsEventArgs e)
 {
     SuppressSlider();
     this.isThumbDragging = false;
 }
 private void MyMap_ViewBoundsChanged(object sender, ViewBoundsEventArgs e)
 {
     mytb.Text = (1 / MyMap.Scale).ToString();
 }
 void MyMap_ViewBoundsChanged(object sender, ViewBoundsEventArgs e)
 {
     btn.Content = 1.0 / MyMap.Scale;
 }
 private void newValue_ViewBoundsChanging(object sender , ViewBoundsEventArgs e)
 {
     ToUpdateMagnifierMapCenterPosition();
 }
 private void newValue_ViewBoundsChanged(object sender , ViewBoundsEventArgs e)
 {
     if (Map.Resolution != lastResolution)
     {
         ToSetMagnifierLevel();
     }
     ToUpdateMagnifierMapCenterPosition();
 }
 void MyMap_ViewBoundsChanged(object sender, ViewBoundsEventArgs e)
 {
     //MessageBox.Show("Unit:" + (sender as Map).CRS.Unit.ToString() + "WKID:" + (sender as Map).CRS.WKID.ToString());
 }
        private void Map_ViewBoundsChanged(object sender, ViewBoundsEventArgs e)
        {
            if (e.OldViewBounds.IsEmpty && preViewButton != null && nextViewButton != null)
            {
                MapHistoryManager._viewBoundsHistory.Add(e.NewViewBounds);
            }
            else if (_newViewBounds && preViewButton != null && nextViewButton != null)
            {
                _currentViewBoundsIndex++;
                if (_viewBoundsHistory.Count - _currentViewBoundsIndex > 0)
                {
                    _viewBoundsHistory.RemoveRange(_currentViewBoundsIndex, _viewBoundsHistory.Count - _currentViewBoundsIndex);
                }
                if (nextViewButton.IsHitTestVisible)
                {
                    nextViewButton.Opacity = 0.3;
                    nextViewButton.IsHitTestVisible = false;
                }

                _viewBoundsHistory.Add(e.NewViewBounds);

                if (!preViewButton.IsHitTestVisible)
                {
                    preViewButton.Opacity = 1.0;
                    preViewButton.IsHitTestVisible = true;
                }
            }
            else
            {
                Map.IsHitTestVisible = true;
                _newViewBounds = true;
            }
        }
        private void Map_ViewBoundsChanging(object sender, ViewBoundsEventArgs e)
        {
            if (!isResolutionsDefined)
            {
                SetupZoom();
                if (hasTieldCachedLayer)
                {
                    isSetLater = true;
                }
            }
            if ((sliderElement != null) && !isThumbDragging)
            {
                double num = GetValueFromMap(Map.ViewBounds);

                if ((num >= 0.0) && (sliderElement.Value != num))
                {
                    sliderElement.Value = num;
                }
            }
        }
        private void Map_ViewBoundsChanged(object sender, ViewBoundsEventArgs e)
        {
            if (!this.isResolutionsDefined)
            {
                this.SetupZoom();
                if (this.hasTieldCachedLayer)
                {
                    isSetLater = true;
                }
            }

            if ((this.sliderElement != null) && !this.isThumbDragging)
            {
                double num = this.GetValueFromMap(this.Map.ViewBounds);

                if ((num >= 0.0) && (this.sliderElement.Value != num))
                {
                    this.sliderElement.Value = num;
                }
            }
            this.isThumbDragging = false;
        }
        private void MyMap_ViewBoundsChanged(object sender, ViewBoundsEventArgs e)
        {
            #region Ellipse
            Ellipse myellipse = new Ellipse();
            myellipse.Fill = new SolidColorBrush(Colors.Red);
            Rectangle2D ellbounds = new Rectangle2D(119.5, 21, 122.5, 26);
            this.arbitrarylayer.AddChild(myellipse, ellbounds);
            MyEllipseStory.Stop();

            Storyboard.SetTarget(myDoubleAnimation, myellipse);
            MyEllipseStory.Begin();

            #endregion

            #region Pushpin
            Pushpin beijing = new Pushpin();
            beijing.Location = new Point2D(116.2, 39.6);
            this.arbitrarylayer.AddChild(beijing);

            Pushpin ulanBator = new Pushpin();
            ulanBator.Location = new Point2D(106.5, 47.6);
            ulanBator.Background = new SolidColorBrush(Colors.Blue);
            this.arbitrarylayer.AddChild(ulanBator);

            Pushpin moscow = new Pushpin();
            moscow.Location = new Point2D(37.4, 55.5);
            moscow.Background = new SolidColorBrush(Colors.Yellow);
            this.arbitrarylayer.AddChild(moscow);

            Pushpin prague = new Pushpin();
            prague.Location = new Point2D(14.3, 50.1);
            prague.Background = new SolidColorBrush(Colors.Orange);
            this.arbitrarylayer.AddChild(prague);

            Pushpin berlin = new Pushpin();
            berlin.Location = new Point2D(13.3, 52.3);
            berlin.Background = new SolidColorBrush(Colors.Purple);
            this.arbitrarylayer.AddChild(berlin);
            #endregion

            #region PolygonElement
            PolygonElement line = new PolygonElement();
            line.Stroke = new SolidColorBrush(Colors.Yellow);
            line.StrokeThickness = 3;
            line.Opacity = 1;
            line.StrokeDashArray = new DoubleCollection { 3, 3 };
            line.StrokeEndLineCap = PenLineCap.Triangle;
            Point2DCollection points = new Point2DCollection();
            points.Add(new Point2D(121.3, 25));
            points.Add(new Point2D(116.2, 39.6));
            points.Add(new Point2D(106.5, 47.6));
            points.Add(new Point2D(37.4, 55.5));
            points.Add(new Point2D(14.3, 50.1));
            points.Add(new Point2D(13.3, 52.3));
            points.Add(new Point2D(0.1, 51.3));
            line.Point2Ds = points;
            this.arbitrarylayer.AddChild(line);
            #endregion

            #region PolygonElement
            PolygonElement polygon = new PolygonElement();
            polygon.Stroke = new SolidColorBrush(Colors.Purple);
            polygon.Opacity = 0.5;
            polygon.Fill = this.British;
            Point2DCollection gonpoints = new Point2DCollection();
            gonpoints.Add(new Point2D(-8, 61));
            gonpoints.Add(new Point2D(-6, 55));
            gonpoints.Add(new Point2D(-8, 50));
            gonpoints.Add(new Point2D(2, 50));
            gonpoints.Add(new Point2D(1, 61));
            polygon.Point2Ds = gonpoints;
            this.arbitrarylayer.AddChild(polygon);
            #endregion

            #region Button
            Button btn = new Button();
            btn.Height = 32;
            btn.Width = 32;
            btn.Content = "点击";
            btn.Click += new RoutedEventHandler(btn_Click);
            Rectangle2D btnbounds = new Rectangle2D(95, 29, 115, 38);
            btn.SetValue(ElementsLayer.BBoxProperty, btnbounds);
            this.arbitrarylayer.AddChild(btn);
            #endregion
        }
 private void newMap_ViewBoundsChanged(object sender, ViewBoundsEventArgs e)
 {
     RefreshScaleBar();
 }
 void MyMap_ViewBoundsChanged(object sender, ViewBoundsEventArgs e)
 {
     if (e.OldViewBounds.IsEmpty)
     {
         var box = new Button() { Width = 100, Height = 80, Content = "ScreenLayer" };
         box.Click += new RoutedEventHandler(box_Click);
         MyMap.ScreenContainer.Children.Add(box);
         Canvas.SetZIndex(box, 20);
     }
 }