I have a Grid element with a XamDataGrid and a Popup.
<Grid>
<XamDataGrid />
<Popup />
</Grid>
I open the popup on enter edit mode and close it on end edit mode. The problem is when I click on any other element (outside of the grid), the popup stays open because the cell doesn't exit edit mode.
I have cellclickaction set to selectcell so that double-click starts edit mode.
Let me know if you need more information.
Thanks!