wpf Grid弧形细边框的设计代码
时间: 2023-04-02 21:02:41 浏览: 396
wpf.rar_WPF_WPF Popup_wpf csharp_界面设计
以下是 WPF Grid 弧形细边框的设计代码:
<Grid>
<Grid.Background>
<LinearGradientBrush StartPoint="," EndPoint="1,1">
<GradientStop Color="#FFCCC" Offset=""/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
</LinearGradientBrush>
</Grid.Background>
<Border BorderThickness="1" BorderBrush="#FF707070" CornerRadius="10">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="Title" FontSize="20" Margin="10"/>
<TextBlock Grid.Row="1" Text="Content" Margin="10"/>
</Grid>
</Border>
</Grid>
阅读全文