Select to view content in your preferred language

Property_Changed on FeatureLayer

701
1
05-16-2011 07:26 AM
MarcoRosa
Emerging Contributor
Hi friends,
i've some questions about Property_Changed event on feature layer:

it's possible to fire this event by code ? for example after adding a graphic objects

wich are the cause for firing property change event ? ( i know when editing objects but there are others ? )

Thank you
GP
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
Only the class that declares the event can fire it. It's not possible to fire events from outside that class, unless a specific method was exposed on it.

The event fires if a property on the layer changes. Since the layer owns its properties, it will fire it when it needs to, so there shouldn't be a reason for having to fire it from outside of it (but please do share why you need this).

Note that this event is only provided to support data binding scenarios. Generally changing DependencyProperties doesn't fire this event because it has other means for trigger rebinding.
0 Kudos