${ui_action_DrawPolygon_Title}。

${ui_action_DrawPolygon_Description_sl}

Inheritance: MapAction, IDrawStyle
 //在图层中添加新地物
 private void AddFeature_Click(object sender, RoutedEventArgs e)
 {
     DrawPolygon polygon = new DrawPolygon(MyMap);
     MyMap.Action = polygon;
     polygon.DrawCompleted += new EventHandler<DrawEventArgs>(polygon_DrawCompleted);
     tempLayer.ClearFeatures();
 }
        //绘制面操作,用于面查询
        private void Region_Click(object sender, RoutedEventArgs e)
        {
            DrawPolygon polygon = new DrawPolygon(MyMap);
            MyMap.Action = polygon;

            //绘制结束调用 drawCompleted 函数
            polygon.DrawCompleted += new EventHandler<DrawEventArgs>(drawCompleted);
        }
        private void mybtn2_Click(object sender, RoutedEventArgs e)
        {
            this.featuresLayer.ClearFeatures();
            this.elementsLayer.Children.Clear();

            DrawPolygon polygon = new DrawPolygon(MyMap);
            MyMap.Action = polygon;
            polygon.DrawCompleted += new EventHandler<DrawEventArgs>(polygon_DrawCompleted);
        }
 //绘制面
 private void MArea_Click(object sender, RoutedEventArgs e)
 {
     DrawPolygon polygon = new DrawPolygon(MyMap);
     MyMap.Action = polygon;
     polygon.DrawCompleted += new EventHandler<DrawEventArgs>(polygon_DrawCompleted);
 }
 //绘制面
 private void btn_FreeRegion_Click(object sender, RoutedEventArgs e)
 {
     DrawPolygon polygon = new DrawPolygon(this.MyMap)
     {
         Fill = regionColor,
         Stroke = new SolidColorBrush { Color=Colors.Blue}
     };
     this.MyMap.Action = polygon;
     polygon.DrawCompleted += new EventHandler<DrawEventArgs>(polygon_DrawCompleted);
 }
 private void Region_Click(object sender , RoutedEventArgs e)
 {
     DrawPolygon dp = new DrawPolygon(MyMap);
     dp.DrawCompleted += new EventHandler<DrawEventArgs>(dp_DrawCompleted);
     MyMap.Action = dp;
 }
 private void Region_Click(object sender , RoutedEventArgs e)
 {
     DrawPolygon dpl = new DrawPolygon(MyMap);
     dpl.DrawCompleted += DrawCompleted;
     MyMap.Action = dpl;
 }
 private void BtnRegion_Click(object sender, RoutedEventArgs e)
 {
     DrawPolygon drawRegion = new DrawPolygon(MyMap)
     {
         StrokeThickness = 5,
         Stroke = new SolidColorBrush(Colors.Green),
         Fill = new SolidColorBrush(Colors.Orange)
     };
     drawRegion.DrawCompleted += new EventHandler<DrawEventArgs>(drawRegion_DrawComplete);
     MyMap.Action = drawRegion;
 }
 //绘制多边形
 private void btn_Region_Click(object sender, RoutedEventArgs e)
 {
     DrawPolygon region = new DrawPolygon(this.MyMap);
     this.MyMap.Action = region;
     region.DrawCompleted += new EventHandler<DrawEventArgs>(region_DrawCompleted);
 }
 private void clipRegion_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     DrawPolygon region = new DrawPolygon(this.MyMap);
     this.MyMap.Action = region;
     region.DrawCompleted += new System.EventHandler<DrawEventArgs>(region_DrawCompleted);
 }
 //绘制多边形,并且设置绘制时的样式
 private void btn_Region_Click(object sender, RoutedEventArgs e)
 {
     DrawPolygon region = new DrawPolygon(this.MyMap);
     region.Fill = new SolidColorBrush(Colors.Cyan);
     region.FillRule = FillRule.Nonzero;
     region.Opacity = 0.75;
     region.Stroke = new SolidColorBrush(Colors.Brown);
     region.StrokeThickness = 1;
     this.MyMap.Action = region;
     region.DrawCompleted += new EventHandler<DrawEventArgs>(region_DrawCompleted);
 }