5 types derived from DrawingContext
PresentationCore (5)
Core\CSharp\System\Windows\Media\DrawingContextWalker.cs (1)
33internal abstract partial class DrawingContextWalker : DrawingContext
Core\CSharp\System\Windows\Media\DrawingDrawingContext.cs (1)
39internal class DrawingDrawingContext : DrawingContext
Core\CSharp\System\Windows\Media\Generated\DrawingContextWalker.cs (1)
39internal abstract partial class DrawingContextWalker : DrawingContext
Core\CSharp\System\Windows\Media\Generated\RenderDataDrawingContext.cs (1)
38internal partial class RenderDataDrawingContext : DrawingContext
Core\CSharp\System\Windows\Media\RenderDataDrawingContext.cs (1)
43internal partial class RenderDataDrawingContext : DrawingContext, IDisposable
203 references to DrawingContext
PresentationCore (38)
Core\CSharp\MS\Internal\Ink\Renderer.cs (1)
81using (DrawingContext drawingContext = RenderOpen())
Core\CSharp\MS\Internal\TextFormatting\DrawingState.cs (3)
29private DrawingContext _drawingContext; // current drawing context 40DrawingContext drawingContext, 122internal DrawingContext DrawingContext
Core\CSharp\MS\Internal\TextFormatting\FormattedTextSymbols.cs (1)
234DrawingContext drawingContext,
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (3)
568DrawingContext drawingContext, 621DrawingContext drawingContext, 704DrawingContext drawingContext,
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (4)
1391DrawingContext drawingContext = Draw.DrawingContext; 1571DrawingContext drawingContext = Draw.DrawingContext; 1964DrawingContext drawingContext = Draw.DrawingContext; 2697DrawingContext drawingContext = Draw.DrawingContext;
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (1)
258DrawingContext drawingContext,
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (3)
489DrawingContext drawingContext, 590DrawingContext drawingContext, 1761DrawingContext drawingContext,
Core\CSharp\MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
257DrawingContext drawingContext,
Core\CSharp\MS\Internal\TextFormatting\TextShapeableSymbols.cs (1)
158DrawingContext drawingContext,
Core\CSharp\System\Windows\Ink\Stroke2.cs (4)
59public void Draw(DrawingContext context) 80public void Draw(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 410protected virtual void DrawCore(DrawingContext drawingContext, DrawingAttributes drawingAttributes) 554internal void DrawInternal(DrawingContext dc, DrawingAttributes DrawingAttributes, bool drawAsHollow)
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (1)
388public void Draw(DrawingContext context)
Core\CSharp\System\Windows\Media\DrawingContextDrawingContextWalker.cs (2)
38public DrawingContextDrawingContextWalker(DrawingContext drawingContext) 46private DrawingContext _drawingContext;
Core\CSharp\System\Windows\Media\DrawingGroup.cs (2)
73public DrawingContext Open() 89public DrawingContext Append()
Core\CSharp\System\Windows\Media\DrawingServices.cs (1)
91DrawingContext dc = drawingGroup.Open();
Core\CSharp\System\Windows\Media\DrawingVisual.cs (1)
85public DrawingContext RenderOpen()
Core\CSharp\System\Windows\Media\FormattedText.cs (3)
1618DrawingContext ctx = drawing.Open(); 1726DrawingContext dc, 1758private CachedMetrics DrawAndCalculateMetrics(DrawingContext dc, Point drawingOffset, bool getBlackBoxMetrics)
Core\CSharp\System\Windows\Media\GlyphRun.cs (1)
1686internal void EmitBackground(DrawingContext dc, Brush backgroundBrush)
Core\CSharp\System\Windows\Media\TextFormatting\TextEmbeddedObject.cs (1)
86DrawingContext drawingContext,
Core\CSharp\System\Windows\Media\TextFormatting\TextLine.cs (1)
62DrawingContext drawingContext,
Core\CSharp\System\Windows\UIElement.cs (3)
934DrawingContext dc = RenderOpen(); 986protected virtual void OnRender(DrawingContext drawingContext) 3163internal DrawingContext RenderOpen()
PresentationFramework (63)
src\Framework\MS\Internal\AppModel\IconHelper.cs (1)
182DrawingContext dc = dv.RenderOpen();
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
990DrawingContext context = drawingVisual.RenderOpen();
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (1)
158protected override void OnRender(DrawingContext drawingContext)
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (4)
67DrawingContext dc = null; 205protected override void OnRender(DrawingContext drawingContext) 230private void DrawHandles(DrawingContext drawingContext, Rect rectWireFrame) 248private void DrawBackgound(DrawingContext drawingContext)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
211DrawingContext ctx = visual.RenderOpen();
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
536protected override void OnRender(DrawingContext context)
src\Framework\MS\Internal\Ink\LassoHelper.cs (1)
152DrawingContext dc = null;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (3)
278DrawingContext dc = null; 430DrawingContext dc = null; 465DrawingContext dc = null;
src\Framework\MS\Internal\PtsHost\Line.cs (2)
460DrawingContext ctx = visual.Open(); 686DrawingContext ctx = drawing.Open();
src\Framework\MS\Internal\PtsHost\LineVisual.cs (1)
27internal DrawingContext Open()
src\Framework\MS\Internal\PtsHost\ListMarkerLine.cs (1)
109internal void FormatAndDrawVisual(DrawingContext ctx, LineProperties lineProps, int ur, int vrBaseline)
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (1)
85using(DrawingContext ctx = _visual.RenderOpen())
src\Framework\MS\Internal\PtsHost\PageVisual.cs (2)
54using (DrawingContext dc = RenderOpen()) 101DrawingContext ctx = this.RenderOpen();
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (2)
48using (DrawingContext dc = RenderOpen()) 66internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
src\Framework\MS\Internal\PtsHost\RunClient.cs (1)
103public override void Draw(DrawingContext drawingContext, Point origin, bool rightToLeft, bool sideways)
src\Framework\MS\Internal\PtsHost\SectionVisual.cs (1)
102using (DrawingContext dc = RenderOpen())
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (4)
249using (DrawingContext dc = _visual.RenderOpen()) 1869private void DrawColumnBackgrounds(DrawingContext dc, Rect tableContentRect) 1949private void DrawRowGroupBackgrounds(DrawingContext dc, PTS.FSTABLEROWDESCRIPTION[] arrayTableRowDesc, Rect tableContentRect, MbpInfo mbpInfo) 2011private void DrawRowBackgrounds(DrawingContext dc, PTS.FSTABLEROWDESCRIPTION[] arrayTableRowDesc, Rect tableContentRect, MbpInfo mbpInfo)
src\Framework\MS\Internal\Text\InlineObject.cs (1)
102public override void Draw(DrawingContext drawingContext, Point origin, bool rightToLeft, bool sideways)
src\Framework\MS\Internal\Text\Line.cs (1)
117internal void Render(DrawingContext ctx, Point lineOffset)
src\Framework\System\Windows\Controls\Border.cs (1)
374protected override void OnRender(DrawingContext dc)
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
861protected override void OnRender(DrawingContext drawingContext)
src\Framework\System\Windows\Controls\Grid.cs (2)
4223using (DrawingContext drawingContext = RenderOpen()) 4254DrawingContext drawingContext,
src\Framework\System\Windows\Controls\Image.cs (1)
260protected override void OnRender(DrawingContext dc)
src\Framework\System\Windows\Controls\MediaElement.cs (1)
739protected override void OnRender(DrawingContext drawingContext)
src\Framework\System\Windows\Controls\Panel.cs (1)
66protected override void OnRender(DrawingContext dc)
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (1)
197protected override void OnRender(DrawingContext dc)
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
468protected override void OnRender(DrawingContext drawingContext)
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
275protected override void OnRender(DrawingContext drawingContext)
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
985using (DrawingContext dc = drawingVisual.RenderOpen())
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (1)
362protected override void OnRender(DrawingContext dc)
src\Framework\System\Windows\Controls\TextBlock.cs (1)
1572protected sealed override void OnRender(DrawingContext ctx)
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
340protected override void OnRender(DrawingContext dc)
src\Framework\System\windows\Documents\CaretElement.cs (3)
128protected override void OnRender(DrawingContext drawingContext) 637internal void OnRenderCaretSubElement(DrawingContext context) 1249protected override void OnRender(DrawingContext drawingContext)
src\Framework\System\Windows\Documents\ColumnResizeAdorner.cs (1)
104protected override void OnRender(DrawingContext drawingContext)
src\Framework\System\Windows\Documents\CompositionAdorner.cs (1)
128protected override void OnRender(DrawingContext drawingContext)
src\Framework\System\Windows\Documents\FixedPage.cs (1)
154protected override void OnRender(DrawingContext dc)
src\Framework\System\Windows\Documents\Glyphs.cs (1)
138protected override void OnRender(DrawingContext context)
src\Framework\System\Windows\Documents\HighlightVisual.cs (3)
87override protected void OnRender(DrawingContext dc) 177private void _UpdateHighlightBackground(DrawingContext dc, ArrayList highlights) 279private void _UpdateHighlightForeground(DrawingContext dc, ArrayList highlights)
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
315DrawingContext dc = visual.RenderOpen(); 346DrawingContext dc = visual.RenderOpen();
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (1)
152DrawingContext drawingContext = drawingGroup.Open();
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
274case 182: t = () => typeof(DrawingContext); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3942typeof(System.Windows.Media.DrawingContext),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5726case KnownElements.DrawingContext: t = typeof(System.Windows.Media.DrawingContext); break;
src\Framework\System\Windows\Shapes\Ellipse.cs (1)
193protected override void OnRender(DrawingContext drawingContext)
src\Framework\System\Windows\Shapes\Rectangle.cs (1)
242protected override void OnRender(DrawingContext drawingContext)
src\Framework\System\Windows\Shapes\Shape.cs (1)
424protected override void OnRender(DrawingContext drawingContext)
PresentationFramework.Aero (22)
Microsoft\Windows\Themes\BulletChrome.cs (5)
613protected override void OnRender(DrawingContext drawingContext) 630private void DrawBackground(DrawingContext dc, ref Rect bounds) 671private void DrawInnerBorder(DrawingContext dc, ref Rect bounds) 712private void DrawGlyph(DrawingContext dc, ref Rect bounds) 742private void DrawBorder(DrawingContext dc, ref Rect bounds)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
476protected override void OnRender(DrawingContext drawingContext) 494private void DrawBackground(DrawingContext dc, ref Rect bounds) 519private void DrawDropShadows(DrawingContext dc, ref Rect bounds) 540private void DrawBorder(DrawingContext dc, ref Rect bounds) 651private void DrawInnerBorder(DrawingContext dc, ref Rect bounds)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
38private void RenderTheme(DrawingContext dc)
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
313protected override void OnRender(DrawingContext dc)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
84DrawingContext myDrawingContext = myDrawing.Open();
Microsoft\Windows\Themes\ScrollChrome.cs (7)
418protected override void OnRender(DrawingContext drawingContext) 463private void DrawShadow(DrawingContext dc, ref Rect bounds) 481private void DrawBorders(DrawingContext dc, ref Rect bounds) 514private void DrawGlyph(DrawingContext dc, ref Rect bounds) 542private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 565private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 720private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
287protected override void OnRender(DrawingContext dc)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
105protected override void OnRender(DrawingContext drawingContext)
PresentationFramework.Classic (22)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (18)
755protected override void OnRender(DrawingContext drawingContext) 934private void DrawBorder(Brush borderBrush, Thickness borderThickness, DrawingContext dc, ref Rect bounds) 988private void DrawBorderPair(Brush highlight, Brush shadow, Thickness singleThickness, DrawingContext dc, ref Rect bounds) 997private void DrawRaisedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1007private void DrawRaisedPressedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1016private void DrawSunkenBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1026private void DrawEtchedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1037private void DrawHorizontalLine(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1050private void DrawVerticalLine(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1218private void DrawTabLeft(DrawingContext dc, ref Rect bounds) 1240private void DrawTabTop(DrawingContext dc, ref Rect bounds) 1254private void DrawTabRight(DrawingContext dc, ref Rect bounds) 1276private void DrawTabBottom(DrawingContext dc, ref Rect bounds) 1298private void DrawThinRaisedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1306private void DrawThinPressedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1314private void DrawAltRaisedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1323private void DrawAltPressedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1331private void DrawRadioButtonBorder(DrawingContext dc, ref Rect bounds)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
48private void RenderTheme(DrawingContext dc)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
287protected override void OnRender(DrawingContext dc)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
89DrawingContext myDrawingContext = myDrawing.Open();
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
105protected override void OnRender(DrawingContext drawingContext)
PresentationFramework.Luna (22)
Microsoft\Windows\Themes\ButtonChrome.cs (6)
389private bool DrawOuterHighlight(DrawingContext dc, ref Rect bounds) 426private bool DrawBackground(DrawingContext dc, ref Rect bounds) 444private void DrawShades(DrawingContext dc, ref Rect bounds) 481private void DrawInnerHighlight(DrawingContext dc, ref Rect bounds) 500private void DrawBorder(DrawingContext dc, ref Rect bounds) 523protected override void OnRender(DrawingContext drawingContext)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
77private void RenderTheme(DrawingContext dc)
Microsoft\Windows\Themes\ScrollChrome.cs (7)
226protected override void OnRender(DrawingContext drawingContext) 302private void DrawShadow(DrawingContext dc, ref Rect bounds) 321private void DrawBorders(DrawingContext dc, ref Rect bounds) 354private void DrawGlyph(DrawingContext dc, ScrollGlyph glyph, ref Rect bounds) 384private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 406private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 572private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds, ScrollGlyph glyph)
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (5)
207protected override void OnRender(DrawingContext drawingContext) 239private void DrawBackground(DrawingContext dc, ref Rect bounds) 262private void DrawHighlight(DrawingContext dc, ref Rect bounds) 283private void DrawGlyph(DrawingContext dc, ref Rect bounds, bool isUnitThickness) 334private void DrawBorder(DrawingContext dc, ref Rect bounds, Thickness thickness, bool isUnitThickness)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
287protected override void OnRender(DrawingContext dc)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
89DrawingContext myDrawingContext = myDrawing.Open();
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
105protected override void OnRender(DrawingContext drawingContext)
PresentationFramework.Royale (20)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
347private bool DrawBackground(DrawingContext dc, ref Rect bounds) 365private void DrawShades(DrawingContext dc, ref Rect bounds) 402private void DrawInnerHighlight(DrawingContext dc, ref Rect bounds) 421private void DrawBorder(DrawingContext dc, ref Rect bounds) 444protected override void OnRender(DrawingContext drawingContext)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
34private void RenderTheme(DrawingContext dc)
Microsoft\Windows\Themes\ScrollChrome.cs (6)
208protected override void OnRender(DrawingContext drawingContext) 281private void DrawBorders(DrawingContext dc, ref Rect bounds) 314private void DrawGlyph(DrawingContext dc, ScrollGlyph glyph, ref Rect bounds) 344private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 366private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 532private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds, ScrollGlyph glyph)
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (5)
207protected override void OnRender(DrawingContext drawingContext) 239private void DrawBackground(DrawingContext dc, ref Rect bounds) 262private void DrawHighlight(DrawingContext dc, ref Rect bounds) 283private void DrawGlyph(DrawingContext dc, ref Rect bounds, bool isUnitThickness) 334private void DrawBorder(DrawingContext dc, ref Rect bounds, Thickness thickness, bool isUnitThickness)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
287protected override void OnRender(DrawingContext dc)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
89DrawingContext myDrawingContext = myDrawing.Open();
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
105protected override void OnRender(DrawingContext drawingContext)
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\FlowchartConnectionPointsAdorner.cs (2)
29protected override void OnRender(DrawingContext drawingContext) 117private static void DrawtWithTransform(DrawingContext drawingContext, bool isRightToLeft, double axis, Action doDraw)
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (1)
29protected override void OnRender(DrawingContext drawingContext)
System\Activities\Core\Presentation\StateMachineConnetionPointsAdorner.cs (1)
26protected override void OnRender(DrawingContext drawingContext)
System.Activities.Presentation (12)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
881protected override void OnRender(DrawingContext drawingContext)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\RenderUtils.cs (1)
17public static bool DrawInscribedRoundedRect(DrawingContext drawingContext, Brush fill, Pen stroke, Rect outerBounds, double cornerRadius)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
277protected override void OnRender(DrawingContext drawingContext)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (1)
241protected override void OnRender(DrawingContext dc)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (1)
207protected override void OnRender(DrawingContext drawingContext)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitAdorner.cs (1)
26protected override void OnRender(DrawingContext drawingContext)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointsAdorner.cs (1)
57protected void DrawConnectionPoint(ConnectionPoint connPoint, Point actualLocation, DrawingContext drawingContext)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorCreationAdorner.cs (1)
25protected override void OnRender(DrawingContext drawingContext)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (1)
596protected override void OnRender(DrawingContext drawingContext)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
265using (var context = drawingVisual.RenderOpen())
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (1)
48protected override void OnRender(DrawingContext drawingContext)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
392protected override void OnRender(DrawingContext drawingContext)