public void ButtonClick(object sender, EventArgs e) { LiDARLayer lay = new LiDARLayer(); lay.LegendText = "LiDARLayer"; App.Map.Layers.Add(lay); }