I will define an event for my border element that relize mouse left button up outside of this element.
Asked
Active
Viewed 957 times
3
-
pls explain in detail... more explanation will give you more answers – Binil Jan 14 '11 at 06:48
-
why this question id down voted. it seems to be a good question and also from a beginner – Binil Jan 14 '11 at 06:49
2 Answers
3
You can get mouse up event outside the element who received mouse down, if on the mouse down you call element.CaptureMouse()
(and on mouse up, do not forget to call element.ReleaseMouseCapture()
).

gking
- 3
- 3

Andrei Pana
- 4,484
- 1
- 26
- 27
0
Mouse.Capture (this,CaptureMode.SubTree);
AddHandler ();
private void AddHandler()
{
AddHandler (Mouse.PreviewMouseDownOutsideCapturedElementEvent,new MouseButtonEventHandler (HandleClickOutsideOfControl),true);
}

mohsen mousavi
- 262
- 2
- 7