src\Framework\MS\Internal\Documents\TextBoxView.cs (8)
541context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height));
793suggestedX -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width));
1564double width = GetWrappingWidth(this.RenderSize.Width);
1739double width = GetWrappingWidth(this.RenderSize.Width);
2015point.X -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width));
2033rect.X += GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width));
2846double width = GetWrappingWidth(this.RenderSize.Width);
src\Framework\System\Windows\Controls\Border.cs (16)
444new Point(RenderSize.Width - halfThickness, RenderSize.Height - halfThickness));
473new Point(halfThickness, RenderSize.Height));
504new Point(RenderSize.Width - halfThickness, 0),
505new Point(RenderSize.Width - halfThickness, RenderSize.Height));
537new Point(RenderSize.Width, halfThickness));
566new Point(0, RenderSize.Height - halfThickness),
567new Point(RenderSize.Width, RenderSize.Height - halfThickness));
586ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX),
587UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY));
591ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX),
592RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY));
598ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom);
src\Framework\System\Windows\Controls\TextBlock.cs (25)
1588ctx.DrawRectangle(background, null, new Rect(0, 0, RenderSize.Width, RenderSize.Height));
1600double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
1601Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
1622double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
1733Rect r = new Rect(new Point(), RenderSize);
1761double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
1762Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
1892double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
1896Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2142double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2143Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2179double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2224double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2225Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2280double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2281Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2381double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2382Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2509double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2594double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2702double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
3256double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
3411double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
3412Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);