void Graphics_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { if (e.NewItems != null) { foreach (var item in e.NewItems) { Graphic g = item as Graphic; Graphic clone = new Graphic() { Geometry = Geometry.Clone(g.Geometry), Symbol = g.Symbol }; foreach (var attribute in g.Attributes) clone.Attributes[attribute.Key] = attribute.Value; target.Graphics.Add(clone); } } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.