fix(build): qualify WPF Point/Size in clip geometry

This commit is contained in:
Meik
2026-03-05 16:42:45 +01:00
parent a6358d581e
commit 9dbed4f45e
2 changed files with 8 additions and 8 deletions

View File

@@ -2211,13 +2211,13 @@ namespace C4IT_CustomerPanel
var geometry = new StreamGeometry();
using (var context = geometry.Open())
{
context.BeginFigure(new Point(0d, 0d), true, true);
context.LineTo(new Point(width, 0d), true, false);
context.LineTo(new Point(width, height - r), true, false);
context.ArcTo(new Point(width - r, height), new Size(r, r), 0d, false, SweepDirection.Clockwise, true, false);
context.LineTo(new Point(r, height), true, false);
context.ArcTo(new Point(0d, height - r), new Size(r, r), 0d, false, SweepDirection.Clockwise, true, false);
context.LineTo(new Point(0d, 0d), true, false);
context.BeginFigure(new System.Windows.Point(0d, 0d), true, true);
context.LineTo(new System.Windows.Point(width, 0d), true, false);
context.LineTo(new System.Windows.Point(width, height - r), true, false);
context.ArcTo(new System.Windows.Point(width - r, height), new System.Windows.Size(r, r), 0d, false, SweepDirection.Clockwise, true, false);
context.LineTo(new System.Windows.Point(r, height), true, false);
context.ArcTo(new System.Windows.Point(0d, height - r), new System.Windows.Size(r, r), 0d, false, SweepDirection.Clockwise, true, false);
context.LineTo(new System.Windows.Point(0d, 0d), true, false);
}
geometry.Freeze();