<ScrollViewer>
<Border Height="342" Width="470" HorizontalAlignment="Left"
VerticalAlignment="Top" BorderThickness="3" BorderBrush="Black">
<Canvas Background="White">
<Rectangle Width="200" Height="200" Canvas.Left="103"
Canvas.Top="186" Fill="Red" />
</Canvas>
</Border>
</ScrollViewer>
即便是Centangle是Canvas儿童,它也在Canvas界限之外提取,涵盖边界底线。 我怎么能够使“雷坦”只从Canvas的限度内提取,确保不再展示其外面的 rec块?
Thanks.