Select to view content in your preferred language

How to Select Graphics on Map and Unselect any of them later via table/DataGrid ?

674
1
Jump to solution
08-15-2013 04:19 AM
ThomasDobrzinski
Deactivated User
Hello,

I am developing an Application using WPF.

My Requirements are:

1) Select Graphics on Map via Editor --> works fine
2) Show these selected Graphics (Attributes) in a seperate Window (DatGrid, ListBox..whatever --> works fine
3) Click on Button removes SelectedItem from DataGrid AND Unselects the referenced Graphic on Map !!! This is my Problem !!!


How do I have develop the last Part (3) ?

I already know how to unselect the Graphic in DataGrid and in Map, but the Editor Event is not fired. That would be important because a lot of Buttons listens to these Events and are disabled / collapsed in some of the states.

I saw an example how to unselect a Graphic with the SELECT Command and the CommandParameter REMOVE, but I can not use it in CodeBehind, right?
It would be great if it is possible to call something like this --> oEditor.Unselect(MyGraphic);

But the only thing I found is oEditor.ClearSelection.

Do you have hints for me how to fix the problem ?

best regards,
Thomas
0 Kudos
1 Solution

Accepted Solutions
ThomasDobrzinski
Deactivated User
To "refresh" the Button States in my Ribbon i call

OEditor.Select.Execute(null);

So the Buttons get the new states.

That works for me 🙂

best regards

View solution in original post

0 Kudos
1 Reply
ThomasDobrzinski
Deactivated User
To "refresh" the Button States in my Ribbon i call

OEditor.Select.Execute(null);

So the Buttons get the new states.

That works for me 🙂

best regards
0 Kudos