
I am using hosted, rafted ToolWindows. They can be dragged up into the tabbed document area which is actually a negative Top position. Is there anyway to limit the drag to stop at the 0 position? I can snap the rafted window back to 0 after the fact, but I would rather it stop at the 0 position.
What I am really trying to do is code an EnsureVisible function for the tool window that I will call when reloading a document. The problem is, if the user left it at the -10 position, I always snap it back to 0 because I don't really know the negative limit before a tool window is off the screen, so I am forced to use the 0 position as my threshold.
This results in a strange experience because the user is allowed to drag it negative but then I snap it back thinking it is off the screen, even though the negative position is perfectly visible.
What I am really trying to do is code an EnsureVisible function for the tool window that I will call when reloading a document. The problem is, if the user left it at the -10 position, I always snap it back to 0 because I don't really know the negative limit before a tool window is off the screen, so I am forced to use the 0 position as my threshold.
This results in a strange experience because the user is allowed to drag it negative but then I snap it back thinking it is off the screen, even though the negative position is perfectly visible.