누구든지 Xaml에서이 개체를 만드는 좋은 방법을 알고 있습니까? 또한 다른 컨트롤 위에 레이어 된 경우 불투명도 0.5로 작동해야합니다.WPF - 경로/도형 도움말 - 이상한 모양
또한 가로 또는 세로 정렬을 통해 크기를 조정할 수 있어야합니다.
Shape http://monitor.utopiaselfscan.com/test.bmp
나는 어려움에 봉착했습니다. 내가 얻게되는 가장 가까운 것은 2 개의 경계가 있고, 하나는 음의 마진을 가지지 만 불투명도가 적용될 때는 작동하지 않습니다. 작동
코드 :
<Path Fill="Black">
<Path.Data>
<CombinedGeometry GeometryCombineMode="Exclude">
<CombinedGeometry.Geometry1>
<RectangleGeometry RadiusX="5" RadiusY="5" Rect="0,0,200,100" />
</CombinedGeometry.Geometry1>
<CombinedGeometry.Geometry2>
<RectangleGeometry RadiusX="5" RadiusY="5" Rect="105,5,90,90" />
</CombinedGeometry.Geometry2>
</CombinedGeometry>
</Path.Data>
</Path>
나는이 페인트를 정말 빠르게 만들었고 검은 색 부분은 물체의 너비의 1/2이되어야한다. – jonathanpeppers