<Grid Width="400">
<Viewbox Stretch="Fill" >
<Canvas Height="350" Width="525" Background="Red">
<Button Content="button1" Canvas.Top="125" Height="60" Width="120" Canvas.Left="366" />
<!--<Canvas.Clip>
<RectangleGeometry Rect="280,115,89,52"></RectangleGeometry>
</Canvas.Clip>-->
</Canvas>
</Viewbox>
</Grid>上图中,如何把Button提取出来,是它填满Viewbox。我试了一下Clip属性,不太行哦
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货