假设我有一个由线段组成的PathGeometry,例如以下矩形(例如Grid):
我想将它们填充到面板底部,就像这样:
我看到的快速而不太好的解决方案是创建具有2个额外点的附加曲线,并将其用于填充。
有没有更好的方法来解决这个任务呢? 类似于这样的东西(伪代码):
![Examples](https://istack.dev59.com/pw7kw.webp)
![enter image description here](https://istack.dev59.com/eN8j4.webp)
有没有更好的方法来解决这个任务呢? 类似于这样的东西(伪代码):
<Path Data=... FillStyle = "ToTheBottom" Fill="Blue"/>