ArcGIS Runtime SDK for WPF - Library Reference
Add Property
See Also 
ESRI.ArcGIS.Client Namespace > Editor Class : Add Property

Enables the user to add a feature to the GraphicsLayer using a specified geometry type, or a FeatureLayer using either the default template or specified template.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Add As ICommand
C# 
public ICommand Add {get;}

Remarks

Add will work against either an editable FeatureLayer or a GraphicsLayer. It will only be enabled if LayerIDs is only referencing one layer.

If you are editing a FeatureLayer, the CommandParameter should be the feature type to use if you have feature types, or the template name if you only have templates defined. If you have multiple templates defined for each feature type, you can use an array object[] { featureTypeId, featureTemplateName } as parameter. If no template and/or feature type is specified, the default will be used. If the FeatureLayer is read-only, Add will not be supported.

If you are editing a GraphicsLayer, the commandParameter must be a ESRI.ArcGIS.Client.Symbols.Symbol to use for drawing. The DrawMode will be deduced from the symbology type.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.