Hi Joe,
I managed.
I defined another event in spatialQueryAction.cs.
This event is called from mainPage and is fired upon completion of the query.
Here is the code:
public event EventHandler PopUpFloatingWindow;
public void OnQueryComplete()
{
if ( QueryComplete != null )
{
QueryComplete(this, EventArgs.Empty);
}
if (PopUpFloatingWindow != null)
{
PopUpFloatingWindow(null, null);
}
}
<i:EventTrigger EventName="Click">
<local:SpatialQueryAction x:Name="spatialQueryActionControl"
OutFields="*"
DrawMode="Rectangle"
LayerID="SpatialQueryGraphicsLayer"
Url="{Binding ElementName=selRectangle, Path=DataContext.URL}"
Symbol="{Binding ElementName=selRectangle, Path=DataContext.SYMBOL}"
TargetName="Map" PopUpFloatingWindow="spatialQueryActionControl_QueryComplete" />
Thanks a lot,
Miri