所以我尝试拉伸图像,但没有成功。不确定这是否是我想要做的,而且我在网上找不到任何有帮助的东西。
您可以使用 ImageBrush 作为窗口背景:
<Window x:Class="YourProject.MainWindow" ...> <Window.Background> <ImageBrush ImageSource="chessbackground.jpg"/> </Window.Background> <Grid> ... </Grid> </Window>