Giorgio,When Editor.ContinuousMode=True it is expected to get edit.Action=Cancel because the current command is activated again. For example you select features from layer 1,2,3. EditCompleted event will report edit.Action=Select with selections from 1,2,3 first and then followed by edit.Action=Cancel.So if you update the code-behind in post# 6 with the following, you will notice that after selection in all layers are made, a Cancel is reported.
private void Editor_EditCompleted(object sender, ESRI.ArcGIS.Client.Editor.EditEventArgs e)
{
System.Diagnostics.Debug.WriteLine(e.Action);
foreach (var edit in e.Edits)
System.Diagnostics.Debug.WriteLine("id '{0}', layer '{1}'", edit.Graphic.Attributes["objectid"], edit.Layer.ID);
}
You access the layer similar way when DeleteSelected is executed. FeatureLayer layer = edit.Layer as FeatureLayer;
Try the following XAML-code to add DeleteSelected:
<StackPanel DataContext="{StaticResource MyEditor}" VerticalAlignment="Top" HorizontalAlignment="Center" Orientation="Horizontal">
<Button Content="Select" Command="{Binding Select}" />
<Button Content="Delete" Command="{Binding DeleteSelected}" />
</StackPanel>
Andy, I have access to API v2.2 Beta Community as well but I do not find your code posted in there. Can you provide a link?In your code, do you have Editor.ContinuousMode=True as well and is what I described above what you're seeing too? I understand your project can be quite large, but we only need XAML and cs files. It would be ideal if you can give us only the code that will reproduce the issue.Thanks!