How to check if two rectangles intersect in WPF
c#, wpf
Solution
if (rectangle1.IntersectsWith(rectangle2))
{
// Do something
}
Rect.IntersectWith
Problem
I have two rectangles in a WPF application. How can I check whether the rectangles intersect or not?