【问题标题】:Is there a way to use polygon as container?有没有办法使用多边形作为容器?
【发布时间】:2012-10-28 00:35:34
【问题描述】:

有没有办法在 WPF 中使用 Polygon 作为容器(如 grid 或 panel )?

【问题讨论】:

    标签: c# wpf grid containers polygon


    【解决方案1】:

    您可以覆盖边框的“OnRender”方法,将其呈现为不同的形状,并使用其子属性。此链接可能会有所帮助: How can I draw a border with squared corners in wpf?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-24
      • 2020-10-31
      • 2021-06-17
      • 2021-06-25
      • 2018-07-24
      • 1970-01-01
      • 1970-01-01
      • 2019-11-03
      相关资源
      最近更新 更多