protected override void OnLayout(bool changed, int l, int t, int r, int b) { if (CrossPlatformArrange == null || Context == null) { return; } var deviceIndependentLeft = Context.FromPixels(l); var deviceIndependentTop = Context.FromPixels(t); var deviceIndependentRight = Context.FromPixels(r); var deviceIndependentBottom = Context.FromPixels(b); var destination = Rectangle.FromLTRB(deviceIndependentLeft, deviceIndependentTop, deviceIndependentRight, deviceIndependentBottom); CrossPlatformArrange(destination); }
public RectangleGeometry(Rect rect) { Rect = rect; }