We are using the OnViewChangeStarted and OnViewChangeCompleted event handlers to toggle between Semantic zoom in and zoom out events. As per the runtime, the event OnViewChangeStarted is fired before OnViewChangeCompleted. In case of going from zoom
out to zoom in, we want to make a check before actually going to zoom in view. Basically when the OnViewChangeStarted event is fired, we want to check a value from the source item and if it is invalid, we want to prevent execution of OnViewChangeCompleted.
Is there any way to achieve this?
OnViewChangeStarted(Object^ sender, SemanticZoomViewChangedEventArgs^ e)
{
if(!e->IsSourceZoomedInView)
{
//Read variable value from e->SourceItem->Item
//if item is invalid, do not propogate call to OnViewChangeCompleted. What can be done here?
}
}
OnViewChangeCompleted(Object^ sender, SemanticZoomViewChangedEventArgs^ e)
{
if(!e->IsSourceZoomedInView)
{
//Process view change
}
}