I have two rectangles in a WPF application. How can I check whether the rectangles intersect or not?
Asked
Active
Viewed 4,104 times
3 Answers
8
if (rectangle1.IntersectsWith(rectangle2))
{
// Do something
}

Steve
- 2,950
- 3
- 21
- 32
-
I don't think there is an IntersectsWith() method in WPF? – Anshuman Jasrotia Dec 14 '12 at 08:00