C# 如何更改形状的边缘。路径从平面变为圆形?
我有一个形状。路径,我用这样的绑定填充:C# 如何更改形状的边缘。路径从平面变为圆形?,c#,wpf,data-binding,path,shape,C#,Wpf,Data Binding,Path,Shape,我有一个形状。路径,我用这样的绑定填充: <Path Stroke=Black" Opacity="0.5" StrokeThickness="10" Data="{Binding Data, UpdateSourceTrigger=PropertyChanged}"> </Path> 对于圆角,将StrokeLineJoin属性设置为Round,对于圆角,可能还将strokelinecap和StrokeEndLineCap设置为:
<Path Stroke=Black"
Opacity="0.5"
StrokeThickness="10"
Data="{Binding Data, UpdateSourceTrigger=PropertyChanged}">
</Path>
对于圆角,将StrokeLineJoin
属性设置为Round
,对于圆角,可能还将strokelinecap
和StrokeEndLineCap
设置为:
<Path StrokeLineJoin="Round"
StrokeStartLineCap="Round"
StrokeEndLineCap="Round"
... />
<Path StrokeLineJoin="Round"
StrokeStartLineCap="Round"
StrokeEndLineCap="Round"
... />