2012-12-14 22 views

回答

7
if (rectangle1.IntersectsWith(rectangle2)) 
{ 
    // Do something 
} 

Rect.IntersectWith

+0

我不认为WPF中有IntersectsWith()方法? –

+0

http://msdn.microsoft.com/en-us/library/system.windows.rect.intersectswith.aspx –

0

尝试IntersectsWith方法。