I'm trying to change the mapstyle via a button like this:
void changeMapStyleHy(object sender, EventArgs e)
SurfaceMap.MapStyle = InfoStrat.VE.VEMapStyle.Hybrid;
The problem is that the button is in another xaml than the actual SurfaceVEMap (x:Name=SurfaceMap).
The build error I get is: "The name 'Surfacemap' does not exist in the currrent context."
So how can I refer to SurfaceMap in the other xaml instead of the current xaml?
Thanks in advance