MS\Internal\Documents\TextBoxView.cs (8)
538context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height));
787suggestedX -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width));
1561double width = GetWrappingWidth(this.RenderSize.Width);
1739double width = GetWrappingWidth(this.RenderSize.Width);
2017point.X -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width));
2035rect.X += GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width));
2866double width = GetWrappingWidth(this.RenderSize.Width);
System\Windows\Controls\Border.cs (16)
433new Point(RenderSize.Width - halfThickness, RenderSize.Height - halfThickness));
461new Point(halfThickness, RenderSize.Height));
492new Point(RenderSize.Width - halfThickness, 0),
493new Point(RenderSize.Width - halfThickness, RenderSize.Height));
524new Point(RenderSize.Width, halfThickness));
553new Point(0, RenderSize.Height - halfThickness),
554new Point(RenderSize.Width, RenderSize.Height - halfThickness));
573ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX),
574UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY));
578ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX),
579RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY));
585ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom);
System\Windows\Controls\TextBlock.cs (25)
1497ctx.DrawRectangle(background, null, new Rect(0, 0, RenderSize.Width, RenderSize.Height));
1509double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
1510Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
1531double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
1638Rect r = new Rect(new Point(), RenderSize);
1666double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
1667Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
1794double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
1798Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2043double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2044Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2080double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2126double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2127Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2183double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2184Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2283double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2284Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2411double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2495double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2603double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
3156double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
3412double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
3413Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);