MS\Internal\Documents\TextBoxView.cs (8)
540context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height));
789suggestedX -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width));
1563double width = GetWrappingWidth(this.RenderSize.Width);
1741double width = GetWrappingWidth(this.RenderSize.Width);
2019point.X -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width));
2037rect.X += GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width));
2868double width = GetWrappingWidth(this.RenderSize.Width);
System\Windows\Controls\Border.cs (16)
437new Point(RenderSize.Width - halfThickness, RenderSize.Height - halfThickness));
465new Point(halfThickness, RenderSize.Height));
496new Point(RenderSize.Width - halfThickness, 0),
497new Point(RenderSize.Width - halfThickness, RenderSize.Height));
528new Point(RenderSize.Width, halfThickness));
557new Point(0, RenderSize.Height - halfThickness),
558new Point(RenderSize.Width, RenderSize.Height - halfThickness));
577ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX),
578UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY));
582ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX),
583RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY));
589ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom);
System\Windows\Controls\TextBlock.cs (25)
1507ctx.DrawRectangle(background, null, new Rect(0, 0, RenderSize.Width, RenderSize.Height));
1519double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
1520Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
1541double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
1648Rect r = new Rect(new Point(), RenderSize);
1676double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
1677Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
1804double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
1808Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2053double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2054Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2090double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2136double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2137Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2193double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2194Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2293double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2294Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
2421double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2505double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
2613double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
3166double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
3422double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
3423Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);