In this scenario I can suggest the following:
- Attach to RootVisual.LostFocus and add the following code:
In addition there should be some code in the corresponding drag/drop handlers that recognizes this case (the e.Options.Status will be DragStatus.DragCancel and the mouse will be over the Htmlplaceholder)
The drawback with of this approach is that when drag over, user needs to click one more time in the iframe, so that Silverlight host loses focus.
- Another option is to play with MouseLeave/MouseEnter and call similar logic to one mentioned above. The drawback here will be that since there is no way to determine mouse button state the drag will finish even if the mouse button is not released.
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>