The setup
I have a map with two Snapshot operational feature layers - one contains points, the other polygons. One or the other can be edited at a time, though its counterpart displays related features.
My MainPage.xaml has a toolbar (StackPanel) with New and Edit buttons. The toolbar StackPanel DataContext is set to an Editor instance defined as a static resource on the page. The Editor in turn has its Map property bound to the page's map object.
The New button's Command is set to to {Binding Add} (The Editor's Add property), and its Edit button's Command is set to {Binding EditVertices} (The Edtor's EditVertices property)
My app sets the Where property on both layers to a particular ID so that only the 'current' feature in each is displayed. After I set the Where properties, I call Update() on each layer to send the request and get the current features. In the UpdateCompleted event handler, I set the Editor.LayerIDs property to the ID of the layer to edit.
The problem
At this point, I expect the New and Edit buttons to be enabled. If my edit layer is the polygon layer, they are. However, if the edit layer is the point layer, only the Edit button is enabled - the New button is always disabled. I read the API Reference for the Editor.Add property, it states that Add will be enabled only if LayerIDs references a single layer (it is as described above), and if the FeatureLayer is read-only (it isn't), Add will not be supported.
So why is Add disabled, and why is it only disabled for one of my two layers?
Thank you, Mark