Select to view content in your preferred language

How do I perform multiple selects without clicking the select button before each?

543
2
12-16-2011 09:34 AM
SeanDolyniuk
Deactivated User
Probably a pretty newbie question, and I couldn't seem to find the answer in the forums here. Bare with me as I'm pretty new to both Silverlight and ArcGIS...

I've got a button that allows to user the select one or more pieces of equipment on the map. My issue is that if the user wants to make additional selections, the Select button has to be pressed before each one. How do I keep the "Select" action active?

The xaml button definition (to keep it simple I omitted the size, margin, etc)...

<Button Name="btnSelectProblem" Command="{Binding Select}" CommandParameter="Add" Click="btnSelectProblem_Click" </Button>

I'm not sure if there is something I should be doing in the xaml code or in the C# code behind (ie, in the btnSelectProblem_Click method.)

Thanks a bunch!
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
Have you looked at this SDK sample? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave. If you check Continous Action, this sets Editor.ContinuousMode=True. If you click on Select, the Select command remains active until another command is activated.

I assume you have created Editor as resource and made your button DataContext point to this resource. You can set ContinuousMode="True" where you defined Editor in the resource.
0 Kudos
SeanDolyniuk
Deactivated User
Beautiful!  You're a gem, Jennifer!

I had looked at a number of samples on that page, but with a name of "Edit Tools - Auto Save", to me it didn't stand out as being related to my task, so I never even went into that one.  (Talk about falsely judging a book by it's cover!).  That's exactly what I needed.

Thank you very much for your response.

Cheers!
0 Kudos