C# WPF:边界的截断角
如何在WPF中剪下一个C# WPF:边界的截断角,c#,wpf,border,C#,Wpf,Border,如何在WPF中剪下一个边框的(右上角)角;类似于?希望这能对您有所帮助 <Grid Background="#FF4E7BF5" Width="250" Height="250"> <Grid.Clip> <GeometryGroup> <!--This RectangleGeometry will show Grid body--> <RectangleGeometry
边框的(右上角)角;类似于?希望这能对您有所帮助
<Grid Background="#FF4E7BF5" Width="250" Height="250">
<Grid.Clip>
<GeometryGroup>
<!--This RectangleGeometry will show Grid body-->
<RectangleGeometry Rect="0,0,250,250"/>
<!--This PathGeometry will cut RectangleGeometry, cut-off right top-->
<PathGeometry>
<PathGeometry.Figures>
<PathFigure StartPoint="230,0">
<LineSegment Point="250,0"/>
<LineSegment Point="250,20"/>
</PathFigure>
</PathGeometry.Figures>
</PathGeometry>
<!--This PathGeometry will cut RectangleGeometry, cut-of left bottom-->
<PathGeometry>
<PathGeometry.Figures>
<PathFigure StartPoint="0,230">
<LineSegment Point="0,250"/>
<LineSegment Point="20,250"/>
</PathFigure>
</PathGeometry.Figures>
</PathGeometry>
</GeometryGroup>
</Grid.Clip>
</Grid>
本守则的效力
检查此链接-[Cutt off corner of border][1][1]:链接中的Generic.xaml是什么?是资源字典(WPF)项吗?是,泛型是资源字典。