${ui_action_DrawLine_Title}
${ui_action_DrawLine_Description_sl}
//绘制线 private void btn_Line_Click(object sender , RoutedEventArgs e) { DrawLine line = new DrawLine(this.MyMap); this.MyMap.Action = line; line.DrawCompleted += new EventHandler<DrawEventArgs>(line_DrawCompleted); }
//绘制线操作,用于线查询 private void Line_Click(object sender, RoutedEventArgs e) { DrawLine line = new DrawLine(MyMap); MyMap.Action = line; //绘制结束调用 DrawCompleted 函数 line.DrawCompleted += new EventHandler<DrawEventArgs>(DrawCompleted); }
private void Button_Click_1(object sender, RoutedEventArgs e) { DrawLine line = new DrawLine(this.MyMap); MyMap.Action = line; // line.Fill = new SolidColorBrush(Colors.Yellow); line.StrokeThickness = 12; line.DrawCompleted += new EventHandler<DrawEventArgs>(Line_DrawLineCompleted); line.Opacity = 0.3; }
private void mybtn_Click(object sender, RoutedEventArgs e) { this.featuresLayer.ClearFeatures(); this.elementsLayer.Children.Clear(); DrawLine line = new DrawLine(MyMap); MyMap.Action = line; line.DrawCompleted += new EventHandler<DrawEventArgs>(line_DrawCompleted); }
private void Line_Click(object sender, RoutedEventArgs e) { DrawLine dl = new DrawLine(MyMap); dl.DrawCompleted += DrawCompleted; MyMap.Action = dl; }