src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (8)
271path.StartPoint = new Point(hatchRect.Left, hatchRect.Top);
283line = new LineSegment(new Point(hatchRect.Left, hatchRect.Bottom), true);
287line = new LineSegment(new Point(hatchRect.Left, hatchRect.Top), true);
368center = new Point(rectWireFrame.Left, rectWireFrame.Top);
374center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Top);
387center = new Point(rectWireFrame.Left, rectWireFrame.Top + rectWireFrame.Height / 2);
401center = new Point(rectWireFrame.Left, rectWireFrame.Bottom);
407center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Bottom);
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (6)
103new Point(_renderBounds.Left + pen.Thickness * 0.5, _renderBounds.Bottom - pen.Thickness * 0.5),
111new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Top),
112new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Bottom));
133new Point(_renderBounds.Left, _renderBounds.Top + pen.Thickness / 2),
144new Point(_renderBounds.Left, _renderBounds.Bottom - pen.Thickness / 2),
156new Point(_renderBounds.Left + _borderThickness.Left, _renderBounds.Top + _borderThickness.Top),
src\Framework\System\Windows\Controls\ItemsControl.cs (13)
2661scrollHost.ScrollToHorizontalOffset(scrollHost.HorizontalOffset + elementBounds.Left);
3032viewPortBounds = new Rect(viewPortBounds.Left, Double.NegativeInfinity,
3058if (DoubleUtil.LessThanOrClose(viewPortBounds.Left, elementBounds.Left)
3071(eastWest && DoubleUtil.LessThanOrClose(elementBounds.Right, viewPortBounds.Left)))
3076(eastWest && DoubleUtil.LessThanOrClose(viewPortBounds.Right, elementBounds.Left)))
3090if (DoubleUtil.LessThan(elementRect.Right, viewportRect.Left) || LayoutDoubleUtil.AreClose(elementRect.Right, viewportRect.Left) ||
3091DoubleUtil.GreaterThan(elementRect.Left, viewportRect.Right) || LayoutDoubleUtil.AreClose(elementRect.Left, viewportRect.Right) ||
3110return DoubleUtil.GreaterThanOrClose(toRect.Left, fromRect.Left);
3323if (mousePosition.X < bounds.Left)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (14)
2633return targetRect.Left - sourceRect.Left;
2699return DoubleUtil.LessThanOrClose(fromRect.Right, toRect.Left);
2701return DoubleUtil.GreaterThanOrClose(fromRect.Left, toRect.Right);
2767return DoubleUtil.GreaterThan(targetRect.Left, sourceRect.Left) || (DoubleUtil.AreClose(targetRect.Left, sourceRect.Left) && IsAncestorOfEx(sourceElement, targetElement));
2782if (DoubleUtil.GreaterThan(targetRect.Right, startRange) && DoubleUtil.LessThan(targetRect.Left, endRange))
3017ResetBaseLines(horizontalDirection ? sourceRect.Top : sourceRect.Left, horizontalDirection);
3022startRange = horizontalDirection ? sourceRect.Top : sourceRect.Left;
3146directionScore = -currentRect.Left;
3162rangeScore = ComputeRangeScore(sourceRect.Left, sourceRect.Right, currentRect.Left, currentRect.Right);