ImageBrush中的TileMode、Viewport属性可以实现平铺。
1 <Grid> 2 <Grid.Background> 3 <ImageBrush ImageSource="Res/Images/curcattab.png" TileMode="Tile" Viewport="0,0,0.5,0.5"/> 4 </Grid.Background> 5 </Grid>
ImageBrush中的TileMode、Viewport属性可以实现平铺。
1 <Grid> 2 <Grid.Background> 3 <ImageBrush ImageSource="Res/Images/curcattab.png" TileMode="Tile" Viewport="0,0,0.5,0.5"/> 4 </Grid.Background> 5 </Grid>
相关文章: