2012-12-14 68 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方法。