views:

21

answers:

0

In our Silverlight 3 project, I am using the ChildWindow control to display several system dialogs. This presents the dialog in a modal window that the user can then drag around if required.

The problem is that it is actually possible for them to drag the ChildWindow off screen, so that it cannot be picked up again and dragged back on screen.

Is there an easy way to prevent a ChildWindow from being dragged off-screen at all?

(I can prevent it by restyling the control so it is not draggable, but I would like to keep this functionality if possible.)