2011-05-01 72 views

回答

1

如果您的矩形沒有明確的大小設置,您可以通過ActualWidth的/身高得到它的當前尺寸:

<Rectangle Name="rect" /> 
double width = rect.ActualWidth; 
double height = rect.ActualHeight; 

如果這是你正在尋找沒有什麼,你可以嘗試寫多一個句子。