WPF為圖片新增倒圓角
阿新 • • 發佈:2020-05-20
//把圖片設定為Border的背景
<Grid Width="973" Height="688"> <Border Name="Image_Game" Width="973" Height="688" BorderBrush="#FF2B9EC5" BorderThickness="4" CornerRadius="10"> <Border.Background> <ImageBrush ImageSource="GameImage/10001.png" /> </Border.Background> </Border> </Grid>