318 references to Top
PresentationCore (20)
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (1)
152NativeMethods.RECT rcWin32 = new NativeMethods.RECT( (int) rc.Left, (int) rc.Top, (int) rc.Right, (int) rc.Bottom );
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (2)
1399_inkSpaceRectangle.Height = data - _inkSpaceRectangle.Top; 1774i = (int)inkSpaceRectangle.Top;
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (2)
849double intersectTop = Math.Max(rect1.Top, rect2.Top);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (3)
240visCorners[0] = _transform2D.Transform(new Point(_visualBounds.Left, _visualBounds.Top)); 241visCorners[1] = _transform2D.Transform(new Point(_visualBounds.Right, _visualBounds.Top)); 1125if (ptRelToCapture.Y <= _visualBounds.Top + 1) ptRelToCapture.Y -= BUFFER_SIZE;
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (2)
2715_overhang.Extent = boundingBox.Bottom - boundingBox.Top; 2716_overhang.Before = -boundingBox.Top;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (1)
1112return _boundingBox.Bottom - _boundingBox.Top;
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
406pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
535pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
Core\CSharp\System\Windows\Media\Effects\Effect.cs (2)
141worldBounds.Top + unitPoint.Y * worldBounds.Height); 158(worldPoint.Y - worldBounds.Top) / worldBounds.Height);
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (3)
177uv.Y * descBounds.Height + descBounds.Top); 260(pt.Y - descBounds.Top) / (descBounds.Bottom - descBounds.Top));
Core\CSharp\System\Windows\UIElement.cs (2)
795EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientArrangeElementBegin, EventTrace.Keyword.KeywordLayout, EventTrace.Level.Verbose, perfElementID, finalRect.Top, finalRect.Left, finalRect.Width, finalRect.Height); 975EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientArrangeElementEnd, EventTrace.Keyword.KeywordLayout, EventTrace.Level.Verbose, perfElementID, finalRect.Top, finalRect.Left, finalRect.Width, finalRect.Height);
PresentationFramework (185)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
267return new Point(rect.Left, rect.Top + rect.Height); 292return new Point(rect.Left, rect.Top + rect.Height / 2);
src\Framework\MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
139return new Point(rect.Left, rect.Top);
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
420TranslateTransform topOffset = new TranslateTransform(markerRect.X, markerRect.Top + MarkerVerticalSpace);
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (1)
103offsetY = adornerRect.Top;
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (8)
271path.StartPoint = new Point(hatchRect.Left, hatchRect.Top); 275PathSegment line = new LineSegment(new Point(hatchRect.Right, hatchRect.Top), 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); 381center = new Point(rectWireFrame.Right, rectWireFrame.Top); 387center = new Point(rectWireFrame.Left, rectWireFrame.Top + rectWireFrame.Height / 2); 394center = new Point(rectWireFrame.Right, rectWireFrame.Top + rectWireFrame.Height / 2);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (8)
1090offset = Math.Max(offset, -(rectStickyNote.Top - rectPage.Top)); 1517Invariant.Assert(DoubleUtil.GreaterThan(rectStickyNote.Bottom, rectPage.Top), "Note's bottom is off top of page."); 1518Invariant.Assert(DoubleUtil.LessThan(rectStickyNote.Top, rectPage.Bottom), "Note's top is off bottom of page."); 1571if (DoubleUtil.LessThan(rectStickyNote.Top, rectPage.Top)) 1574offsetY = rectStickyNote.Top - rectPage.Top;
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
2659return new Point(selectionRect.Left, selectionRect.Top);
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (2)
1107if (point.Y >= textViewBounds.Top && point.Y <= textViewBounds.Bottom) 1113vert = Math.Min(Math.Abs(point.Y - textViewBounds.Top), Math.Abs(point.Y - textViewBounds.Bottom));
src\Framework\MS\Internal\Documents\ScrollData.cs (2)
197double minY = ComputeScrollOffset(viewport.Top, viewport.Bottom, rectangle.Top, rectangle.Bottom);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (9)
1954foundHit = snapToText || (point.Y >= columnBox.Top && point.Y <= columnBox.Bottom); 2017if (point.Y < paragraphBox.Top) 2034if (point.Y < nextParagraphBox.Top) 2037double gap = nextParagraphBox.Top - paragraphBox.Bottom; 2064if (point.Y < nextParagraphBox.Top) 3494return new Rect(paragraphResult.LayoutBox.Left, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height); 3499return new Rect(paragraphResult.LayoutBox.Right, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height); 3528return new Rect(paragraphResult.LayoutBox.Left, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height); 3533return new Rect(paragraphResult.LayoutBox.Right, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height);
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
150double minY = System.Windows.Controls.ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(viewport.Top, viewport.Bottom, rect.Top, rect.Bottom);
src\Framework\MS\Internal\Helper.cs (1)
1205itemsCorrectionFactor.Top = itemsRect.Top;
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
166transform.OffsetY = -bounds.Top;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (4)
322else if ( !DoubleUtil.AreClose(finalRectangle.Top, selectionBounds.Top) 962double dy = target.Top - m22 * source.Top;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
238int yHotspot = (int)Math.Round(hotspot.Y - drawingBounds.Top);
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (2)
242if ( newPoint.Y < _selectionRect.Top + MinimumHeightWidthSize ) 244newPoint.Y = _selectionRect.Top + MinimumHeightWidthSize;
src\Framework\MS\Internal\LayoutDump.cs (1)
409writer.WriteAttributeString("Top", rect.Top.ToString ("F", CultureInfo.InvariantCulture));
src\Framework\MS\Internal\PtsHost\Line.cs (1)
447inlineObject.UIElementIsland.Offset = new Vector(rect.Left, rect.Top);
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (6)
104new Point(_renderBounds.Right - pen.Thickness * 0.5, _renderBounds.Top + pen.Thickness * 0.5))); 111new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Top), 122new Point(_renderBounds.Right - pen.Thickness / 2, _renderBounds.Top), 133new Point(_renderBounds.Left, _renderBounds.Top + pen.Thickness / 2), 134new Point(_renderBounds.Right, _renderBounds.Top + pen.Thickness / 2)); 156new Point(_renderBounds.Left + _borderThickness.Left, _renderBounds.Top + _borderThickness.Top),
src\Framework\MS\Internal\PtsHost\Pts.cs (1)
912v = TextDpi.ToTextDpi(rect.Top);
src\Framework\MS\Internal\Text\ComplexLine.cs (2)
209UIElement.RoundLayoutValue(lineOffset.Y + rect.Top, dpi.DpiScaleY)); 213proxyVisual.Offset = new Vector(lineOffset.X + rect.Left, lineOffset.Y + rect.Top);
src\Framework\MS\Internal\Text\TextLineResult.cs (2)
51return _owner.GetTextPositionFromDistance(_dcp, distance, _layoutBox.Top, _index); 265_owner.GetLineDetails(_dcp, _index, _layoutBox.Top, out _cchContent, out _cchEllipses);
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
185point = new Point(boundingRect.Left + boundingRect.Width * 0.1, boundingRect.Top + boundingRect.Height * 0.1);
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
144pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
src\Framework\System\Windows\Controls\Border.cs (1)
647rt.Top + thick.Top,
src\Framework\System\Windows\Controls\DataGrid.cs (5)
6449if ((pt.Y >= rowBounds.Top) && (pt.Y <= rowBounds.Bottom)) 6584if ((rowPt.Y >= rowBounds.Top) && (rowPt.Y <= rowBounds.Bottom)) 6592distance = Math.Abs(pt.Y - cellBounds.Top); 6597else if ((rowPt.Y >= rowBounds.Top) && (rowPt.Y <= rowBounds.Bottom)) 6681if (pt.Y < bounds.Top)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
862isi.SetVerticalOffset(rect.Top + isi.VerticalOffset);
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
522return ((CheckIsPointBetween(container, element.Top) && CheckIsPointBetween(container, element.Bottom)) || 523CheckIsPointBetween(element, container.Top + tolerance) || 530return (DoubleUtil.LessThanOrClose(rect.Top, pointY) &&
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2231InkCanvasSelection.CommitChanges(Rect.Offset(bounds, -bounds.Left + point.X, -bounds.Top + point.Y), false);
src\Framework\System\Windows\Controls\ItemsControl.cs (13)
2665scrollHost.ScrollToVerticalOffset(scrollHost.VerticalOffset + elementBounds.Top); 3027viewPortBounds = new Rect(Double.NegativeInfinity, viewPortBounds.Top, 3050if (DoubleUtil.LessThanOrClose(viewPortBounds.Top, elementBounds.Top) 3070else if ((northSouth && DoubleUtil.LessThanOrClose(elementBounds.Bottom, viewPortBounds.Top)) || 3075else if ((northSouth && DoubleUtil.LessThanOrClose(viewPortBounds.Bottom, elementBounds.Top)) || 3092DoubleUtil.LessThan(elementRect.Bottom, viewportRect.Top) || LayoutDoubleUtil.AreClose(elementRect.Bottom, viewportRect.Top) || 3093DoubleUtil.GreaterThan(elementRect.Top, viewportRect.Bottom) || LayoutDoubleUtil.AreClose(elementRect.Top, viewportRect.Bottom)) 3115return DoubleUtil.GreaterThanOrClose(toRect.Top, fromRect.Top); 3309if (mousePosition.Y < bounds.Top)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (11)
2175else if (childBounds.Top < screenBounds.Top) 2177bestTranslation.Y = screenBounds.Top; 2197else if (childBounds.Top < screenBounds.Top) 2199bestTranslation.Y = screenBounds.Top; 2259limitSize.Height = Math.Max(0.0, Math.Max(screenBounds.Bottom - targetBounds.Bottom, targetBounds.Top - screenBounds.Top)); 2285limitSize.Height = Math.Max(0.0, Math.Max(screenBounds.Bottom - targetBounds.Bottom, targetBounds.Top - screenBounds.Top)); 2431rect.Top + rect.Height / 2.0);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
609double minY = ComputeScrollOffsetWithMinimalScroll(viewport.Top, viewport.Bottom, rectangle.Top, rectangle.Bottom);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
885else if (DoubleUtil.LessThan(point.Y, pageRect.Top))
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
269isi.SetVerticalOffset(alignToTop ? rangeBounds.Top : (rangeBounds.Bottom - isi.ViewportHeight));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
2953DoubleUtil.GreaterThan((isHorizontal ? viewport.Left : viewport.Top), firstItemInViewportOffset)) 6341double top = DoubleUtil.AreClose(0, itemsRect.Top) ? 0 : -itemsRect.Top; 12785writer.Write(rect.Top);
src\Framework\System\windows\Documents\CaretElement.cs (1)
397Point targetPoint = new Point(targetRect.Left, targetRect.Top);
src\Framework\System\Windows\Documents\CompositionAdorner.cs (3)
504if (_startRect.Top != _endRect.Top) 536return _startRect.Bottom - _startRect.Top;
src\Framework\System\Windows\Documents\FixedSOMFixedBlock.cs (2)
55run.BoundingRect.Top != lastRun.BoundingRect.Top &&
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (16)
472alignmentBox.Top, 477Rect boundingRect = new Rect(lastX, alignmentBox.Top, advWidth + advFont, alignmentBox.Height); 506Rect boundingRect = new Rect(lastX, alignmentBox.Top, alignmentBox.Right-lastX, alignmentBox.Height); 605if (lastLine != null && textRunRect.Bottom <= lastLine.BoundingRect.Top) 615if (textRunRect.Bottom - verticalOverlap < fixedBlockRect.Top) 620else if (textRunRect.Top + verticalOverlap > fixedBlockRect.Bottom) 655!(FixedTextBuilder.IsSameLine(compareLine.BoundingRect.Top - textRunRect.Top, textRunRect.Height, compareLine.BoundingRect.Height))) 711bottom = textRunRect.Top + margin; 716bottom = fixedBlockRect.Top + margin; 733return (!_lines.IsVerticallySeparated(left, textRunRect.Top, right, textRunRect.Bottom)); 934_AddLine(new Point(center, bounds.Top), new Point(center, bounds.Bottom), transform); 940double center = bounds.Top + .5 * bounds.Height; 1042Math.Abs(t.BoundingRect.Bottom - row.BoundingRect.Top) < fudge) 1159nextPageElement.BoundingRect.Top >= currentPageElement.BoundingRect.Top))
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (6)
258if (thisRect.Top == otherRect.Top) 262else if (thisRect.Bottom <= otherRect.Top) 267else if (otherRect.Bottom <= thisRect.Top) 275if (thisRect.Top < otherRect.Top)
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (4)
71if (FixedTextBuilder.IsSameLine(otherRect.Top - thisRect.Top, thisRect.Height, otherRect.Height)) 77result = (thisRect.Top < otherRect.Top) ? -1 : +1;
src\Framework\System\Windows\Documents\FixedTextView.cs (1)
957double centerY = (box.Top + box.Bottom) / 2;
src\Framework\System\Windows\Documents\HighlightVisual.cs (2)
249if (bg != highlightBrush || backgroundRect.Top > combinedRect.Bottom + .1 || backgroundRect.Bottom + .1 < combinedRect.Top
src\Framework\System\Windows\Documents\ImmComposition.cs (3)
770milPointTopLeft = new Point(Math.Min(rectStart.Left, rectEnd.Left), Math.Min(rectStart.Top, rectEnd.Top)); 892milPointTopLeft = new Point(rectUi.Left, rectUi.Top);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
296Visual v = GetVisual(-_selectionRect.Left, -_selectionRect.Top); 361double top = _selectionRect.Top;
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
548targetPoint = new Point(targetPoint.X, targetRect.Top + pageHeight);
src\Framework\System\windows\Documents\TextEditorSelection.cs (2)
641Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Top + pageHeight); 1469Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Top + pageHeight);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (4)
1616if (point.Y < cellInfo.TableArea.Top || point.Y > cellInfo.TableArea.Bottom) 1630columnRect = new Rect(cellInfo.CellArea.Left, cellInfo.TableArea.Top, 1, cellInfo.TableArea.Height); 1640columnRect = new Rect(cellInfo.CellArea.Right, cellInfo.TableArea.Top, 1, cellInfo.TableArea.Height); 1725_columnRect.Top,
src\Framework\System\Windows\Documents\TextStore.cs (3)
869milPointTopLeft = new Point(Math.Min(rectPrev.Left, rectCur.Left), Math.Min(rectPrev.Top, rectCur.Top)); 1027milPointTopLeft = new Point(rectUi.Left, rectUi.Top);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (18)
2574if (DoubleUtil.LessThan(headerRect.Top, itemsHostRect.Top)) 2588double before = itemsHostRect.Top - rect.Top; 2642return targetRect.Top - sourceRect.Top; 2703return DoubleUtil.GreaterThanOrClose(fromRect.Top, toRect.Bottom); 2705return DoubleUtil.LessThanOrClose(fromRect.Bottom, toRect.Top); 2760if (DoubleUtil.GreaterThan(targetRect.Bottom, startRange) && DoubleUtil.LessThan(targetRect.Top, endRange)) 2789return DoubleUtil.GreaterThan(targetRect.Top, sourceRect.Top) || (DoubleUtil.AreClose (targetRect.Top, sourceRect.Top) && IsAncestorOfEx(sourceElement, targetElement)); 3017ResetBaseLines(horizontalDirection ? sourceRect.Top : sourceRect.Left, horizontalDirection); 3022startRange = horizontalDirection ? sourceRect.Top : sourceRect.Left; 3140directionScore = -currentRect.Top; 3166rangeScore = ComputeRangeScore(sourceRect.Top, sourceRect.Bottom, currentRect.Top, currentRect.Bottom);
src\Framework\System\Windows\Shapes\Shape.cs (1)
595dY = margin - geometryBounds.Top;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (8)
500rcLogicalWindow.Top - rcLogicalClient.Top, 1178top = (int)r.Top; 1293(int)Math.Floor(region.Top), 1301(int)Math.Floor(region.Top), 1452if (mousePosition.Y >= windowPosition.Top && mousePosition.Y < windowPosition.Top + _chromeInfo.ResizeBorderThickness.Top + _chromeInfo.CaptionHeight) 1454onResizeBorder = (mousePosition.Y < (windowPosition.Top + _chromeInfo.ResizeBorderThickness.Top));
src\Framework\System\Windows\Standard\DpiHelper.cs (2)
46Point topLeft = LogicalPixelsToDevice(new Point(logicalRectangle.Left, logicalRectangle.Top), dpiScaleX, dpiScaleY); 54Point topLeft = DevicePixelsToLogical(new Point(deviceRectangle.Left, deviceRectangle.Top), dpiScaleX, dpiScaleY);
src\Framework\System\Windows\Window.cs (2)
4794SetValue(TopProperty, restoreRect.Top); 6998interopRc = new NativeMethods.RefRECT((int)physicalClip.Left, (int)physicalClip.Top, (int)physicalClip.Right, (int)physicalClip.Bottom);
PresentationFramework.Aero (21)
Microsoft\Windows\Themes\BulletChrome.cs (4)
640bounds.Top + 1.0, 681dc.DrawRectangle(innerFill, null, new Rect(bounds.Left + 3.0, bounds.Top + 3.0, bounds.Width - 6.0, bounds.Height - 6.0)); 688dc.DrawRectangle(null, innerBorder, new Rect(bounds.Left + 2.5, bounds.Top + 2.5, bounds.Width - 5.0, bounds.Height - 5.0)); 755bounds.Top + 0.5,
Microsoft\Windows\Themes\ButtonChrome.cs (5)
503bounds.Top + 1.0, 612bounds.Top + 0.5, 632borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - 0.5, bounds.Top + 2.5), true)); 633borderFigure.Segments.Add(new ArcSegment(new Point(bounds.Right - 2.5, bounds.Top + 0.5), new Size(2.0, 2.0), 0.0, false, SweepDirection.Counterclockwise, true)); 662dc.DrawRoundedRectangle(null, innerBorder, new Rect(bounds.Left + 1.5, bounds.Top + 1.5, bounds.Width - 3.0, bounds.Height - 3.0), 1.75, 1.75);
Microsoft\Windows\Themes\ListBoxChrome.cs (7)
336bounds.Top + border.Top, 351bounds.Top + border.Top + innerBorderThickness, 373bounds.Top + 0.5, 488borderFigure.StartPoint = new Point(bounds.Left, bounds.Top); 491borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right, bounds.Top), false)); 499borderFigure.StartPoint = new Point(bounds.Left + thickness.Left, bounds.Top + thickness.Top); 502borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Top + thickness.Top), false));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
118double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth; 131double centerTop = shadowBounds.Top + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight);
PresentationFramework.Classic (15)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
607rt.Top + thick.Top, 958dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, borderThickness.Top)); 964dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Top, borderThickness.Left, bounds.Height)); 970dc.DrawRectangle(borderBrush, null, new Rect(bounds.Right - borderThickness.Right, bounds.Top, borderThickness.Right, bounds.Height)); 1042dc.DrawRectangle(DarkBrush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, singleThickness.Top)); 1055dc.DrawRectangle(DarkBrush, null, new Rect(bounds.Left, bounds.Top, singleThickness.Left, bounds.Height)); 1056dc.DrawRectangle(LightLightBrush, null, new Rect(bounds.Right - singleThickness.Right, bounds.Top, singleThickness.Right, bounds.Height)); 1081double left = bounds.Left, right = bounds.Right, top = bounds.Top, bottom = bounds.Bottom - 1.0; 1113double right = bounds.Right, top = bounds.Top, bottom = bounds.Bottom - 1.0; 1227dc.PushTransform(GetTabTransform(ClassicBorderStyle.TabLeft, bounds.Left, bounds.Top));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
118double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth; 131double centerTop = shadowBounds.Top + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight);
PresentationFramework.Luna (15)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
453dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, 6.0), 4.0, 4.0); 467dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Top, 6.0, bounds.Height), 4.0, 4.0); 474dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Right - 6.0, bounds.Top, 6.0, bounds.Height), 4.0, 4.0); 492bounds.Top + 4.0 / 3.0, 511bounds.Top + 0.5,
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (5)
270dc.DrawRectangle(null, highlightPen, new Rect(bounds.Left + 1.0, bounds.Top + 1.0, bounds.Width - 2.0, bounds.Height - 2.0)); 295dc.PushTransform(new TranslateTransform(bounds.Left - 1.0, bounds.Top - 1.0)); 318dc.DrawRectangle(glyphFill, null, new Rect(bounds.Left + 2, bounds.Top + 2, bounds.Width - 4.0, bounds.Height - 4.0)); 347bounds.Top + 0.5, 463rt.Top + thick.Top,
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
118double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth; 131double centerTop = shadowBounds.Top + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight);
PresentationFramework.Royale (15)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
374dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, 6.0), 3.0, 3.0); 388dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Top, 6.0, bounds.Height), 3.0, 3.0); 395dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Right - 6.0, bounds.Top, 6.0, bounds.Height), 3.0, 3.0); 413bounds.Top + 4.0 / 3.0, 432bounds.Top + 0.5,
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (5)
270dc.DrawRectangle(null, highlightPen, new Rect(bounds.Left + 1.0, bounds.Top + 1.0, bounds.Width - 2.0, bounds.Height - 2.0)); 295dc.PushTransform(new TranslateTransform(bounds.Left - 1.0, bounds.Top - 1.0)); 318dc.DrawRectangle(glyphFill, null, new Rect(bounds.Left + 2, bounds.Top + 2, bounds.Width - 4.0, bounds.Height - 4.0)); 347bounds.Top + 0.5, 463rt.Top + thick.Top,
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
118double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth; 131double centerTop = shadowBounds.Top + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight);
System.Activities.Presentation (20)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (2)
902double dropButtonTop = innerRect.Top + dropButtonInset.Top; 915double textAreaTop = innerRect.Top + textAreaInset.Top;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\RenderUtils.cs (2)
19Point spineLeftTop = new Point(outerBounds.Left, outerBounds.Top); 46return new Rect(new Point(outerBounds.Left + strokeThickness, outerBounds.Top + strokeThickness), new Point(outerBounds.Right - strokeThickness, outerBounds.Bottom - strokeThickness));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (4)
1307AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.Left, rectangle.Bottom))); 1308AddCover(new ConnectorSegment(new Point(rectangle.Right, rectangle.Top), new Point(rectangle.Right, rectangle.Bottom))); 1309AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.Right, rectangle.Top)));
System.Activities.Presentation\System\Activities\Presentation\View\QuadTree.cs (12)
333Rect topLeft = new Rect(toInsert.bounds.Left, toInsert.bounds.Top, w, h); 334Rect topRight = new Rect(toInsert.bounds.Left + w, toInsert.bounds.Top, w, h); 335Rect bottomLeft = new Rect(toInsert.bounds.Left, toInsert.bounds.Top + h, w, h); 336Rect bottomRight = new Rect(toInsert.bounds.Left + w, toInsert.bounds.Top + h, w, h); 413Rect topLeft = new Rect(this.bounds.Left, this.bounds.Top, w, h); 414Rect topRight = new Rect(this.bounds.Left + w, this.bounds.Top, w, h); 415Rect bottomLeft = new Rect(this.bounds.Left, this.bounds.Top + h, w, h); 416Rect bottomRight = new Rect(this.bounds.Left + w, this.bounds.Top + h, w, h); 479Rect topLeft = new Rect(this.bounds.Left, this.bounds.Top, w, h); 480Rect topRight = new Rect(this.bounds.Left + w, this.bounds.Top, w, h); 481Rect bottomLeft = new Rect(this.bounds.Left, this.bounds.Top + h, w, h); 482Rect bottomRight = new Rect(this.bounds.Left + w, this.bounds.Top + h, w, h);
UIAutomationClient (11)
MS\Internal\Automation\ClickablePoint.cs (8)
39if (rect.Left >= rect.Right || rect.Top >= rect.Bottom) 44NativeMethods.RECT winRect = new NativeMethods.RECT((int)rect.Left, (int)rect.Top, (int)rect.Height, (int)rect.Bottom); 50pt = new Point((rect.Left + rect.Right) / 2, (rect.Top + rect.Bottom) / 2); 65pt = new Point(rect.Left + (rect.Width /2), rect.Top + 1); 73pt = new Point( rect.Left + 1, rect.Top + (rect.Height /2) ); 77pt = new Point( rect.Right - 1, rect.Top + (rect.Height /2) ); 105double y = rect.Top + 1; 161for ( double down = rect.Top + y; down < rect.Bottom; down += y )
System\Windows\Automation\ItemContainerPattern.cs (1)
171value = new double[] { rc.Left, rc.Top, rc.Width, rc.Height };
System\Windows\Automation\PropertyCondition.cs (1)
176val = new double[] { rc.Left, rc.Top, rc.Width, rc.Height };
System\Windows\Automation\TextPattern.cs (1)
233if (screenLocation.X < rect.Left || screenLocation.X >= rect.Right || screenLocation.Y < rect.Top || screenLocation.Y >= rect.Bottom)
UIAutomationClientsideProviders (8)
MS\Internal\AutomationProxies\Misc.cs (1)
1386return x >= rc.Left && x < rc.Right && y >= rc.Top && y < rc.Bottom;
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
388int y = ((int)rect.Top + (int)rect.Bottom) / 2;
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
1454double top = rect.Top;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
366info.rc.top = (int)rc.Top;
MS\Internal\AutomationProxies\WindowsToolbar.cs (1)
683Misc.MouseClick(((int)boundingRectangle.Left + (int)boundingRectangle.Right) / 2, ((int)boundingRectangle.Top + (int)boundingRectangle.Bottom) / 2);
MS\Internal\AutomationProxies\WindowsTooltip.cs (1)
276if (pt.x >= rects[scan].Left && pt.x <= rects[scan].Right && pt.y >= rects[scan].Top && pt.y <= rects[scan].Bottom)
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
559int y = (int) rc.Top - updownRect.top + (int) rc.Height / 2;
MS\Win32\NativeMethods.cs (1)
1205this.top = (int)rc.Top;
WindowsBase (8)
Base\System\Windows\Rect.cs (8)
367return new Point(Left, Top); 379return new Point(Right, Top); 482(rect.Top <= Bottom) && 483(rect.Bottom >= Top); 500double top = Math.Max(Top, rect.Top); 533double top = Math.Min(Top, rect.Top);