Event InteractionPreviewChanged
Occurs during interactive changes, before the user completes the current change.
Namespace: Esri.ArcGISRuntime.UI.Editing
Assembly: Esri.ArcGISRuntime.dll
Syntax
public event EventHandler<GeometryEditorInteractionPreviewEventArgs>? InteractionPreviewChanged
Returns
| Type | Description |
|---|---|
| EventHandler<GeometryEditorInteractionPreviewEventArgs> | Occurs during interactive changes, before the user completes the current change. |
Remarks
The interaction preview is the geometry displayed on screen during an ongoing interaction. The interaction preview geometry consists of the Geometry with the ongoing changes applied.These changes are represented visually by feedback symbols such as FeedbackVertexSymbol and FeedbackLineSymbol.The preview updates continuously as the ongoing interaction is being performed. For example when a GeometryEditorElement is being created, moved, scaled or rotated. The event provides information about the interaction in progress including:
- A preview of the Geometry that is being created or updated during the interaction.
- The type of interaction that is occurring.
-
The element that is being interacted with.
Cancelling or completing the interaction results in the event being raised with a
nullparameter, this helps to differentiate the end of one interaction and start of the next. Because this event is raised continuously during ongoing interactions, avoid using it to trigger resource-intensive operations. To optimize performance, unsubscribe from the event when it is no longer needed. Note: programmatic methods that change the Geometry such as Undo() and Redo() will not cause this event to fire as they are not represented by the preview geometry.
Applies to
| Target | Versions |
|---|---|
| .NET | 300.1 |
| .NET Windows | 300.1 |
| .NET Android | 300.1 |
| .NET iOS | 300.1 |