3 overrides of DrawRectangle
PresentationCore (3)
Core\CSharp\System\Windows\Media\DrawingDrawingContext.cs (1)
161public override void DrawRectangle(
Core\CSharp\System\Windows\Media\Generated\DrawingContextWalker.cs (1)
91public override void DrawRectangle(
Core\CSharp\System\Windows\Media\Generated\RenderDataDrawingContext.cs (1)
179public override void DrawRectangle(
160 references to DrawRectangle
PresentationCore (4)
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
1473drawingContext.DrawRectangle(
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (1)
1894drawingContext.DrawRectangle(
Core\CSharp\System\Windows\Media\Generated\DrawingContextDrawingContextWalker.cs (1)
105_drawingContext.DrawRectangle(
Core\CSharp\System\Windows\Media\GlyphRun.cs (1)
1716dc.DrawRectangle(
PresentationFramework (32)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
991context.DrawRectangle(visualBrush,
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (1)
164drawingContext.DrawRectangle(null, _adornerBorderPen,
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (3)
73dc.DrawRectangle( 215drawingContext.DrawRectangle(null, 240drawingContext.DrawRectangle(_adornerFillBrush, _adornerPenBrush, visibleRect);
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
541context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height));
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
282dc.DrawRectangle(db, null, new Rect(0, 0, width, height));
src\Framework\MS\Internal\PtsHost\PageVisual.cs (2)
58dc.DrawRectangle(_backgroundBrush, null, _renderBounds); 62dc.DrawRectangle(Brushes.Transparent, null, _renderBounds);
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (2)
102dc.DrawRectangle(null, pen, new Rect( 154dc.DrawRectangle(_backgroundBrush, null,
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (5)
1888dc.DrawRectangle(columnBackgroundBrush, null, colRect); 1907dc.DrawRectangle(columnBackgroundBrush, null, colRect); 1973dc.DrawRectangle(rowGroupBackgroundBrush, null, rowRect); 1991dc.DrawRectangle(rowGroupBackgroundBrush, null, rowRect); 2026dc.DrawRectangle(rowBackgroundBrush, null, rowRect);
src\Framework\System\Windows\Controls\Border.cs (2)
457dc.DrawRectangle( 612dc.DrawRectangle(background, null, new Rect(ptTL, ptBR));
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
872drawingContext.DrawRectangle(DataGridOwner.VerticalGridLinesBrush, null, rect); 881drawingContext.DrawRectangle(dataGrid.HorizontalGridLinesBrush, null, rect);
src\Framework\System\Windows\Controls\Panel.cs (1)
74dc.DrawRectangle(background,
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (1)
203dc.DrawRectangle(background,
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
490drawingContext.DrawRectangle(dataGrid.HorizontalGridLinesBrush, null, rect);
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
298drawingContext.DrawRectangle(dataGrid.HorizontalGridLinesBrush, null, rect);
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
987dc.DrawRectangle(imageBrush, null, pageVisualRect);
src\Framework\System\Windows\Controls\TextBlock.cs (1)
1588ctx.DrawRectangle(background, null, new Rect(0, 0, RenderSize.Width, RenderSize.Height));
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
346dc.DrawRectangle(background,
src\Framework\System\windows\Documents\CaretElement.cs (2)
687context.DrawRectangle(_caretBrush, null, new Rect(0, 0, _interimWidth, _height)); 700context.DrawRectangle(_caretBrush, null, new Rect(-(_systemCaretWidth / 2), 0, _systemCaretWidth, _height));
src\Framework\System\Windows\Documents\CompositionAdorner.cs (1)
265drawingContext.DrawRectangle(selectionBrush, selectionPen, rect);
src\Framework\System\Windows\Documents\FixedPage.cs (1)
160dc.DrawRectangle(background,
src\Framework\System\Windows\Documents\HighlightVisual.cs (1)
113dc.DrawRectangle(SelectionHighlightInfo.ObjectMaskBrush, null, r);
PresentationFramework.Aero (34)
Microsoft\Windows\Themes\BulletChrome.cs (7)
645dc.DrawRectangle(fill, null, backgroundRect); 650dc.DrawRectangle(fill, null, backgroundRect); 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)); 731dc.DrawRectangle(null, HighlightStroke, new Rect(3.5, 3.5, 6, 6)); 760dc.DrawRectangle(null, pen, rect); 763dc.DrawRectangle(null, overlayPen, rect);
Microsoft\Windows\Themes\ButtonChrome.cs (4)
509dc.DrawRectangle(fill, null, backgroundRect); 514dc.DrawRectangle(fill, null, backgroundRect); 527dc.DrawRectangle(leftShadow, null, new Rect(1.0, 1.0, 2.0, bounds.Bottom - 2.0)); 534dc.DrawRectangle(topShadow, null, new Rect(1.0, 1.0, bounds.Right - 2.0, 2.0));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (8)
88dc.DrawRectangle(bevel, null, new Rect(0.0, 0.0, size.Width, size.Height)); 149dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 223dc.DrawRectangle(sideBrush, null, new Rect(0.0, 0.0, 1.0, Max0(size.Height - 0.95))); 224dc.DrawRectangle(sideBrush, null, new Rect(size.Width - 1.0, 0.0, 1.0, Max0(size.Height - 0.95))); 246dc.DrawRectangle(topBrush, null, new Rect(0.0, 0.0, size.Width, 2.0)); 263dc.DrawRectangle(pressedBevel, null, new Rect(1.0, 0.0, 1.0, size.Height - 0.95)); 264dc.DrawRectangle(pressedBevel, null, new Rect(size.Width - 2.0, 0.0, 1.0, size.Height - 0.95)); 307dc.DrawRectangle(bottomBrush, null, new Rect(0.0, size.Height - 1.0, size.Width, 1.0));
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
344dc.DrawRectangle(fill, null, backgroundRect);
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
87myDrawingContext.DrawRectangle(brush, null, new Rect(-width, 0, width, height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
557dc.DrawRectangle(glyphShadow, null, new Rect(x + i - 0.5, y - 0.5, 3.0, shadowHeight)); 560dc.DrawRectangle(brush, null, new Rect(x + i, y, 2.0, height)); 580dc.DrawRectangle(glyphShadow, null, new Rect(x - 0.5, y + i - 0.5, shadowWidth, 3.0)); 583dc.DrawRectangle(brush, null, new Rect(x, y + i, width, 2.0));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (9)
163drawingContext.DrawRectangle(brushes[TopLeft], null, topLeft); 169drawingContext.DrawRectangle(brushes[Top], null, top); 173drawingContext.DrawRectangle(brushes[TopRight], null, topRight); 180drawingContext.DrawRectangle(brushes[Left], null, left); 187drawingContext.DrawRectangle(brushes[Right], null, right); 192drawingContext.DrawRectangle(brushes[BottomLeft], null, bottomLeft); 198drawingContext.DrawRectangle(brushes[Bottom], null, bottom); 202drawingContext.DrawRectangle(brushes[BottomRight], null, bottomRight); 219drawingContext.DrawRectangle(brushes[Center], null, center);
PresentationFramework.Classic (33)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
839drawingContext.DrawRectangle(background, null, bounds); 946dc.DrawRectangle(borderBrush, null, bounds); 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)); 976dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Bottom - borderThickness.Bottom, bounds.Width, borderThickness.Bottom)); 1042dc.DrawRectangle(DarkBrush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, singleThickness.Top)); 1043dc.DrawRectangle(LightLightBrush, null, new Rect(bounds.Left, bounds.Bottom - singleThickness.Bottom, bounds.Width, singleThickness.Bottom)); 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));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (11)
102dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 109dc.DrawRectangle(dark, null, new Rect(0.0, 0.0, size.Width, 1.0)); 110dc.DrawRectangle(dark, null, new Rect(0.0, 0.0, 1.0, size.Height)); 111dc.DrawRectangle(dark, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0)); 112dc.DrawRectangle(dark, null, new Rect(Max0(size.Width - 1.0), 0.0, 1.0, size.Height)); 116dc.DrawRectangle(light, null, new Rect(0.0, 0.0, 1.0, Max0(size.Height - 1.0))); 117dc.DrawRectangle(light, null, new Rect(0.0, 0.0, Max0(size.Width - 1.0), 1.0)); 123dc.DrawRectangle(dark, null, new Rect(Max0(size.Width - 2.0), 1.0, 1.0, Max0(size.Height - 2.0))); 126dc.DrawRectangle(darkDarkRight, null, new Rect(Max0(size.Width - 1.0), 0.0, 1.0, size.Height)); 133dc.DrawRectangle(dark, null, new Rect(1.0, Max0(size.Height - 2.0), Max0(size.Width - 2.0), 1.0)); 136dc.DrawRectangle(darkDarkBottom, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0));
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
149myDrawingContext.DrawRectangle( 166myDrawingContext.DrawRectangle( 179myDrawingContext.DrawRectangle(
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (9)
163drawingContext.DrawRectangle(brushes[TopLeft], null, topLeft); 169drawingContext.DrawRectangle(brushes[Top], null, top); 173drawingContext.DrawRectangle(brushes[TopRight], null, topRight); 180drawingContext.DrawRectangle(brushes[Left], null, left); 187drawingContext.DrawRectangle(brushes[Right], null, right); 192drawingContext.DrawRectangle(brushes[BottomLeft], null, bottomLeft); 198drawingContext.DrawRectangle(brushes[Bottom], null, bottom); 202drawingContext.DrawRectangle(brushes[BottomRight], null, bottomRight); 219drawingContext.DrawRectangle(brushes[Center], null, center);
PresentationFramework.Luna (24)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
167dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 254dc.DrawRectangle(border, null, new Rect(0.0, 0.0, 1.0, size.Height)); 255dc.DrawRectangle(border, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0)); 302dc.DrawRectangle(sideBrush, null, new Rect(horizontal ? 0.0 : Max0(size.Width - 2.0), 4.0, 2.0, Max0(size.Height - 8.0)));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
397dc.DrawRectangle(brush, null, new Rect(x + i, y, 1.0, height)); 400dc.DrawRectangle(glyphShadow, null, new Rect(x + i + 1, y + 1, 1.0, height)); 419dc.DrawRectangle(brush, null, new Rect(x, y + i, width, 1.0)); 422dc.DrawRectangle(glyphShadow, null, new Rect(x + 1, y + i + 1, width, 1.0));
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
247dc.DrawRectangle(fill, null, bounds); 270dc.DrawRectangle(null, highlightPen, new Rect(bounds.Left + 1.0, bounds.Top + 1.0, bounds.Width - 2.0, bounds.Height - 2.0)); 318dc.DrawRectangle(glyphFill, null, new Rect(bounds.Left + 2, bounds.Top + 2, bounds.Width - 4.0, bounds.Height - 4.0)); 351dc.DrawRectangle(null, borderPen, rect);
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
149myDrawingContext.DrawRectangle( 166myDrawingContext.DrawRectangle( 179myDrawingContext.DrawRectangle(
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (9)
163drawingContext.DrawRectangle(brushes[TopLeft], null, topLeft); 169drawingContext.DrawRectangle(brushes[Top], null, top); 173drawingContext.DrawRectangle(brushes[TopRight], null, topRight); 180drawingContext.DrawRectangle(brushes[Left], null, left); 187drawingContext.DrawRectangle(brushes[Right], null, right); 192drawingContext.DrawRectangle(brushes[BottomLeft], null, bottomLeft); 198drawingContext.DrawRectangle(brushes[Bottom], null, bottom); 202drawingContext.DrawRectangle(brushes[BottomRight], null, bottomRight); 219drawingContext.DrawRectangle(brushes[Center], null, center);
PresentationFramework.Royale (24)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
96dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 176dc.DrawRectangle(border, null, new Rect(0.0, 0.0, 1.0, size.Height)); 177dc.DrawRectangle(border, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0)); 224dc.DrawRectangle(sideBrush, null, new Rect(horizontal ? 0.0 : Max0(size.Width - 2.0), 4.0, 2.0, Max0(size.Height - 8.0)));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
357dc.DrawRectangle(brush, null, new Rect(x + i, y, 1.0, height)); 360dc.DrawRectangle(glyphShadow, null, new Rect(x + i + 1, y + 1, 1.0, height)); 379dc.DrawRectangle(brush, null, new Rect(x, y + i, width, 1.0)); 382dc.DrawRectangle(glyphShadow, null, new Rect(x + 1, y + i + 1, width, 1.0));
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
247dc.DrawRectangle(fill, null, bounds); 270dc.DrawRectangle(null, highlightPen, new Rect(bounds.Left + 1.0, bounds.Top + 1.0, bounds.Width - 2.0, bounds.Height - 2.0)); 318dc.DrawRectangle(glyphFill, null, new Rect(bounds.Left + 2, bounds.Top + 2, bounds.Width - 4.0, bounds.Height - 4.0)); 351dc.DrawRectangle(null, borderPen, rect);
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
149myDrawingContext.DrawRectangle( 166myDrawingContext.DrawRectangle( 179myDrawingContext.DrawRectangle(
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (9)
163drawingContext.DrawRectangle(brushes[TopLeft], null, topLeft); 169drawingContext.DrawRectangle(brushes[Top], null, top); 173drawingContext.DrawRectangle(brushes[TopRight], null, topRight); 180drawingContext.DrawRectangle(brushes[Left], null, left); 187drawingContext.DrawRectangle(brushes[Right], null, right); 192drawingContext.DrawRectangle(brushes[BottomLeft], null, bottomLeft); 198drawingContext.DrawRectangle(brushes[Bottom], null, bottom); 202drawingContext.DrawRectangle(brushes[BottomRight], null, bottomRight); 219drawingContext.DrawRectangle(brushes[Center], null, center);
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (1)
63drawingContext.DrawRectangle(brush, renderPen, tooltipRect);
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (1)
263dc.DrawRectangle(selectionBrush, null, new Rect(
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (2)
215drawingContext.DrawRectangle(this.hitTestBrush, this.hitTestPen, this.hitTestRects[i]); 225drawingContext.DrawRectangle(null, this.highlightPen, this.adornedElementRect);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitAdorner.cs (1)
29drawingContext.DrawRectangle(null, this.pen, this.adornedElementRect);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointsAdorner.cs (2)
63drawingContext.DrawRectangle(Brushes.Transparent, new Pen(Brushes.Transparent, 0), 65drawingContext.DrawRectangle(this.renderBrush, this.renderPen,
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
267context.DrawRectangle(((DrawingBrush)resource), null, new Rect(0, 0, defaultPixelWidth, defaultPixelHeight));
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (1)
63drawingContext.DrawRectangle(brush, renderPen, tooltipRect);