代码很简单我就不再熬述了. ;)
参考: http://www.cnblogs.com/nasa/archive/2008/07/04/1235842.html
RectangleGeometry xRect
=
new
RectangleGeometry();
xRect.Rect = new Rect( 0 , 0 , 400, 300);
LayoutRoot.Clip = xRect;
xRect.Rect = new Rect( 0 , 0 , 400, 300);
LayoutRoot.Clip = xRect;
参考: http://www.cnblogs.com/nasa/archive/2008/07/04/1235842.html