POST
|
Hi Antti, Forget it... I did set it in DataContext instead of Command. That´s why I got that behavior. Regards, Jonas
... View more
11-14-2014
02:01 AM
|
0
|
1
|
1129
|
POST
|
Hi Antti, Thx, great sample I could get it to work, and I tried to modify the code I have to use DataContext="{Binding ElementName=mapView, Path=Editor.AddVertex}" instead of calling on Command=”AddVertex”. What I the saw was that the AddVertex button is always active, meaning it does not check if it is an edit session as I get with the other commands. Thanks for the help, we will do some more testing on this, Regards, Jonas
... View more
11-13-2014
12:30 AM
|
1
|
3
|
1129
|
POST
|
Hi Antti, Thx, for checking in to this question. Yes I am using the ICommand AddVertex from MapView.Editor and are using the following DataContext: DataContext="{Binding ElementName=mapView, Path=Editor}" I am also using command as Undo, Redo and Cancel, and those are activated when I editing my map. By some reason the button connected to the AddVertex command never gets in a valid state because it will not become clickable. Do you have a sample showing how this should work? Regards, Jonas
... View more
11-12-2014
02:23 AM
|
0
|
10
|
1129
|
POST
|
Hi All, We are trying to use the command AddVertex to edit existing polygons and like to add this using XAML code: e.g. <Button Content="Add Vertex" Command="{Binding AddVertex}" CommandParameter="{Binding GPSPosition}" … /> where GPSPosition is a function in the code behind. However using the command parameter with the gps function or not we seem not to be able to get this button to activate when editing. Has anyone looked at this Before and have a solution on this? Or know if we are addressing this the wrong way?
... View more
11-12-2014
12:41 AM
|
0
|
12
|
4934
|
Title | Kudos | Posted |
---|---|---|
1 | 11-13-2014 12:30 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|