<Page x:Class="使用画笔填充矩形.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
WindowTitle="使用画笔填充矩形">
<StackPanel Orientation="Horizontal">
<Rectangle Stroke="Red" StrokeThickness="10" Fill="Yellow"
Width="100" Height="80" Margin="10"/>
<Rectangle StrokeThickness="10" Width="100" Height="80" Margin="10">
<Rectangle.Stroke>
<SolidColorBrush Color="Blue"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<SolidColorBrush Color="Lime"/>
</Rectangle.Fill>
</Rectangle>
</StackPanel>
</Page>
使用画笔填充矩形
最新推荐文章于 2022-04-19 15:28:39 发布