fix(build): qualify WPF Point/Size in clip geometry
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user