Class SnapSourceSettings
Configures a valid source of geometries that the GeometryEditor can snap interactive edits to.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.UI.Editing
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class SnapSourceSettings : INotifyPropertyChanged
Remarks
Following a call to SyncSourceSettings(), the SourceSettings collection is populated with SnapSourceSettings objects that are valid for snapping. Each represents a ISnapSource that is in the currently connected map and provides full resolution geometries suitable for snapping.
Set IsEnabled to true
for each item that you want allow your users to snap to. You may
wish to delegate the choice of snapping sources to users by binding the collection of snapping sources to
controls which allow them to change IsEnabled for each snapping source individually.
Snapping works for visible objects within a visible ISnapSource - for example if a feature layer or graphics overlay is not visible due to the current scale range, definition expression, or other reason, it will not participate in snapping at that time. Visibility does not affect whether a SnapSourceSettings object is present in the SourceSettings collection or not.
See ISnapSource for more information about which data sources are valid for snapping.
Properties
Name | Description |
---|---|
IsEnabled | Gets or sets a value indicating whether to enable snapping to the geometries in the ISnapSource, |
Source | Gets the underlying source of geometries to snap to, for example a FeatureLayer or GraphicsOverlay. |
Events
Name | Description |
---|---|
PropertyChanged | Occurs when a non-dependency property value changes. |
See Also
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 200.4 - 200.5 |
.NET | 200.4 - 200.5 |
.NET Windows | 200.4 - 200.5 |
.NET Android | 200.4 - 200.5 |
.NET iOS | 200.4 - 200.5 |
.NET Framework | 200.4 - 200.5 |
UWP | 200.4 - 200.5 |