80 instantiations of PathGeometry
PresentationCore (21)
System\Windows\Media\CombinedGeometry.cs (2)
247new PathGeometry() : 251new PathGeometry() :
System\Windows\Media\Generated\PathGeometry.cs (1)
127return new PathGeometry();
System\Windows\Media\Geometry.cs (12)
588return new PathGeometry(); 595return new PathGeometry(); 624resultGeometry = new PathGeometry(); 630resultGeometry = new PathGeometry(list.Figures, fillRule, null); 667return new PathGeometry(); 674return new PathGeometry(); 727resultGeometry = new PathGeometry(); 733resultGeometry = new PathGeometry(list.Figures, fillRule, null); 814return new PathGeometry(); 821return new PathGeometry(); 849resultGeometry = new PathGeometry(); 855resultGeometry = new PathGeometry(list.Figures, fillRule, null);
System\Windows\Media\GeometryGroup.cs (1)
44PathGeometry pg = new PathGeometry();
System\Windows\Media\PathFigure.cs (1)
58PathGeometry geometry = new PathGeometry();
System\Windows\Media\PathGeometry.cs (2)
643resultGeometry = new PathGeometry(); 649resultGeometry = new PathGeometry(list.Figures, fillRule, null);
System\Windows\Media\PathStreamGeometryContext.cs (2)
45_pathGeometry = new PathGeometry(); 51_pathGeometry = new PathGeometry();
PresentationFramework (17)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
284hatchGeometry = new PathGeometry();
MS\Internal\Ink\PenCursorManager.cs (2)
451PathGeometry pathGeometry = new PathGeometry(); 505PathGeometry pathGeometry1 = new PathGeometry();
System\Windows\Controls\Primitives\TickBar.cs (4)
527PathGeometry geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) }); 540geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) }); 632PathGeometry geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) }); 645geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) });
System\windows\Documents\CaretElement.cs (1)
719pathGeometry = new PathGeometry();
System\Windows\Documents\CompositionAdorner.cs (1)
296PathGeometry pathGeometry = new PathGeometry();
System\Windows\Documents\DocumentSequenceTextView.cs (1)
162return (new PathGeometry());;
System\Windows\Documents\FixedSOMPageConstructor.cs (1)
947PathGeometry pg = new PathGeometry();
System\Windows\Documents\FixedTextView.cs (1)
234PathGeometry boundingGeometry = new PathGeometry();
System\Windows\Documents\HighlightVisual.cs (1)
248highlightGeometry = new PathGeometry();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8148DefaultConstructor = delegate () { return new System.Windows.Media.PathGeometry(); },
System\Windows\Markup\KnownTypes.cs (1)
1438case KnownElements.PathGeometry: o = new System.Windows.Media.PathGeometry(); break;
System\Windows\Shapes\Polygon.cs (1)
141PathGeometry polygonGeometry = new PathGeometry();
System\Windows\Shapes\Polyline.cs (1)
139PathGeometry polylineGeometry = new PathGeometry();
PresentationFramework.Aero (9)
Microsoft\Windows\Themes\BulletChrome.cs (1)
898PathGeometry path = new PathGeometry();
Microsoft\Windows\Themes\ButtonChrome.cs (1)
630PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
326arrowGeometry = new PathGeometry();
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
482PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
613PathGeometry path = new PathGeometry(); 645PathGeometry path = new PathGeometry(); 677PathGeometry path = new PathGeometry(); 709PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
PresentationFramework.Aero2 (9)
Microsoft\Windows\Themes\BulletChrome.cs (1)
898PathGeometry path = new PathGeometry();
Microsoft\Windows\Themes\ButtonChrome.cs (1)
630PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
326arrowGeometry = new PathGeometry();
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
482PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
613PathGeometry path = new PathGeometry(); 645PathGeometry path = new PathGeometry(); 677PathGeometry path = new PathGeometry(); 709PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
PresentationFramework.AeroLite (2)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
188arrowGeometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
PresentationFramework.Classic (5)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
890PathGeometry geometry = new PathGeometry(); 1096PathGeometry geometry = new PathGeometry(); 1126PathGeometry geometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
146arrowGeometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
PresentationFramework.Luna (8)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
173PathGeometry tabGeometry = new PathGeometry(); 319arrowGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
449PathGeometry path = new PathGeometry(); 484PathGeometry path = new PathGeometry(); 519PathGeometry path = new PathGeometry(); 554PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
478PathGeometry geometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
PresentationFramework.Royale (8)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
102PathGeometry tabGeometry = new PathGeometry(); 241arrowGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
409PathGeometry path = new PathGeometry(); 444PathGeometry path = new PathGeometry(); 479PathGeometry path = new PathGeometry(); 514PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
478PathGeometry geometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
ReachFramework (1)
Serialization\Manager\ReachSerializationUtils.cs (1)
933PathGeometry geometry = new PathGeometry();
193 references to PathGeometry
PresentationCore (97)
System\Windows\Media\Animation\DoubleAnimationUsingPath.cs (6)
51typeof(PathGeometry), 54(PathGeometry)null)); 59public PathGeometry PathGeometry 63return (PathGeometry)GetValue(PathGeometryProperty); 166PathGeometry pathGeometry = PathGeometry; 265PathGeometry pathGeometry = PathGeometry;
System\Windows\Media\Animation\MatrixAnimationUsingPath.cs (6)
189typeof(PathGeometry), 192(PathGeometry)null)); 197public PathGeometry PathGeometry 201return (PathGeometry)GetValue(PathGeometryProperty); 245PathGeometry pathGeometry = PathGeometry; 315PathGeometry pathGeometry = PathGeometry;
System\Windows\Media\Animation\PointAnimationUsingPath.cs (6)
49typeof(PathGeometry), 52(PathGeometry)null)); 57public PathGeometry PathGeometry 61return (PathGeometry)GetValue(PathGeometryProperty); 137PathGeometry pathGeometry = PathGeometry; 216PathGeometry pathGeometry = PathGeometry;
System\Windows\Media\CombinedGeometry.cs (3)
236PathGeometry pathGeometry = GetAsPathGeometry(); 241internal override PathGeometry GetAsPathGeometry() 246PathGeometry geometry1 = (g1 == null) ?
System\Windows\Media\Drawing.cs (1)
109IntersectionDetail IDrawingContent.HitTestGeometry(PathGeometry geometry)
System\Windows\Media\DrawingServices.cs (1)
51internal static IntersectionDetail HitTestGeometry(Drawing drawing, PathGeometry geometry)
System\Windows\Media\EllipseGeometry.cs (2)
284internal override PathGeometry GetAsPathGeometry() 287PathGeometry.ParsePathGeometryData(GetPathGeometryData(), ctx);
System\Windows\Media\FormattedText.cs (1)
1605PathGeometry accumulatedBounds = null;
System\Windows\Media\Generated\PathGeometry.cs (9)
33public new PathGeometry Clone() 35return (PathGeometry)base.Clone(); 42public new PathGeometry CloneCurrentValue() 44return (PathGeometry)base.CloneCurrentValue(); 60PathGeometry target = ((PathGeometry) d); 67PathGeometry target = ((PathGeometry) d); 278Type typeofThis = typeof(PathGeometry);
System\Windows\Media\Geometry.cs (28)
55return PathGeometry.GetPathBounds( 133return PathGeometry.GetPathBounds( 530return PathGeometry.HitTestWithPathGeometry(this, geometry, tolerance, type); 557PathGeometry pathGeometry1 = GetWidenedPathGeometry(pen); 559return PathGeometry.HitTestWithPathGeometry(pathGeometry1, geometry, tolerance, type); 582public virtual PathGeometry GetFlattenedPathGeometry(double tolerance, ToleranceType type) 598PathGeometry resultGeometry = null; 608PathGeometry.FigureList list = new PathGeometry.FigureList(); 617new PathGeometry.AddFigureToListDelegate(list.AddFigureToList), 642public PathGeometry GetFlattenedPathGeometry() 659public virtual PathGeometry GetWidenedPathGeometry(Pen pen, double tolerance, ToleranceType type) 677PathGeometry resultGeometry = null; 690PathGeometry.FigureList list = new(); 703new PathGeometry.AddFigureToListDelegate(list.AddFigureToList), 718new PathGeometry.AddFigureToListDelegate(list.AddFigureToList), 746public PathGeometry GetWidenedPathGeometry(Pen pen) 765public static PathGeometry Combine( 773return PathGeometry.InternalCombine(geometry1, geometry2, mode, transform, tolerance, type); 783public static PathGeometry Combine( 789return PathGeometry.InternalCombine( 808public virtual PathGeometry GetOutlinedPathGeometry(double tolerance, ToleranceType type) 824PathGeometry resultGeometry = null; 833PathGeometry.FigureList list = new PathGeometry.FigureList(); 842new PathGeometry.AddFigureToListDelegate(list.AddFigureToList), 867public PathGeometry GetOutlinedPathGeometry() 876internal abstract PathGeometry GetAsPathGeometry();
System\Windows\Media\GeometryGroup.cs (3)
37PathGeometry pathGeometry = GetAsPathGeometry(); 42internal override PathGeometry GetAsPathGeometry() 44PathGeometry pg = new PathGeometry();
System\Windows\Media\GeometryHitTestParameters.cs (2)
16private PathGeometry _hitGeometryInternal; // The internal geometry we use for hit testing 106internal PathGeometry InternalHitGeometry
System\Windows\Media\GlyphTypeface.cs (1)
1293PathGeometry.ParsePathGeometryData(pathGeoData, ctx);
System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (2)
27internal HitTestWithGeometryDrawingContextWalker(PathGeometry geometry) 457private PathGeometry _geometry;
System\Windows\Media\IDrawingContent.cs (1)
56IntersectionDetail HitTestGeometry(PathGeometry geometry);
System\Windows\Media\LineGeometry.cs (2)
180internal override PathGeometry GetAsPathGeometry() 183PathGeometry.ParsePathGeometryData(GetPathGeometryData(), ctx);
System\Windows\Media\Parsers.cs (1)
312PathGeometry pathGeometry = context.GetPathGeometry();
System\Windows\Media\PathFigure.cs (2)
58PathGeometry geometry = new PathGeometry(); 61PathGeometry flattenedGeometry = geometry.GetFlattenedPathGeometry(tolerance, type);
System\Windows\Media\PathGeometry.cs (5)
86public static PathGeometry CreateFromGeometry(Geometry geometry) 595internal static PathGeometry InternalCombine( 603PathGeometry resultGeometry = null; 723MilRectD bounds = PathGeometry.GetPathBoundsAsRB( 900internal override PathGeometry GetAsPathGeometry()
System\Windows\Media\PathStreamGeometryContext.cs (4)
28s_defaultFillRule = (FillRule)PathGeometry.FillRuleProperty.GetDefaultValue(typeof(PathGeometry)); 297internal PathGeometry GetPathGeometry() 464private PathGeometry _pathGeometry;
System\Windows\Media\RectangleGeometry.cs (2)
381internal override PathGeometry GetAsPathGeometry() 384PathGeometry.ParsePathGeometryData(GetPathGeometryData(), ctx);
System\Windows\Media\RenderData.cs (1)
166public IntersectionDetail HitTestGeometry(PathGeometry geometry)
System\Windows\Media\StreamGeometry.cs (4)
167bounds = PathGeometry.GetPathBoundsAsRB( 275internal override PathGeometry GetAsPathGeometry() 278PathGeometry.ParsePathGeometryData(GetPathGeometryData(), ctx); 289PathGeometry thisAsPathGeometry = GetAsPathGeometry();
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (4)
101PathGeometry.AddFigureToListDelegate addFigureCallback, 115PathGeometry.AddFigureToListDelegate addFigureCallback, 126PathGeometry.AddFigureToListDelegate addFigureCallback, 137PathGeometry.AddFigureToListDelegate addFigureCallback,
PresentationFramework (28)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
235PathGeometry hatchGeometry = null;
MS\Internal\Ink\PenCursorManager.cs (2)
451PathGeometry pathGeometry = new PathGeometry(); 505PathGeometry pathGeometry1 = new PathGeometry();
System\Windows\Controls\Primitives\TickBar.cs (2)
527PathGeometry geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) }); 632PathGeometry geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) });
System\windows\Documents\CaretElement.cs (1)
716PathGeometry pathGeometry;
System\Windows\Documents\CompositionAdorner.cs (1)
296PathGeometry pathGeometry = new PathGeometry();
System\Windows\Documents\FixedSOMPageConstructor.cs (6)
60PathGeometry.ParsePathGeometryData(geometry.GetPathGeometryData(), this); 323PathGeometry pathGeom = PathGeometry.CreateFromGeometry(geom); 938private void _ProcessSolidPath(Matrix transform, PathGeometry pathGeom) 947PathGeometry pg = new PathGeometry(); 956private void _ProcessOutlinePath(Matrix transform, PathGeometry pathGeom)
System\Windows\Documents\FixedTextBuilder.cs (2)
1336g = PathGeometry.CreateFromGeometry(geom); 1419geom = PathGeometry.CreateFromGeometry(geom);
System\Windows\Documents\FixedTextView.cs (1)
234PathGeometry boundingGeometry = new PathGeometry();
System\Windows\Documents\HighlightVisual.cs (1)
168PathGeometry highlightGeometry = null;
System\Windows\FrameworkElement.cs (1)
4979PathGeometry combinedClip = Geometry.Combine(localClip, slotClip, GeometryCombineMode.Intersect, null);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
540case 446: t = () => typeof(PathGeometry); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
3311Type type = typeof(System.Windows.Media.PathGeometry); 3312DependencyProperty dp = System.Windows.Media.PathGeometry.FiguresProperty; 3314this.GetXamlType(typeof(System.Windows.Media.PathGeometry)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8145typeof(System.Windows.Media.PathGeometry),
System\Windows\Markup\KnownTypes.cs (3)
1852return System.Windows.Media.PathGeometry.FiguresProperty; 2511case KnownElements.PathGeometry: return (o as System.Windows.Media.PathGeometry).Figures; 5994case KnownElements.PathGeometry: t = typeof(System.Windows.Media.PathGeometry); break;
System\Windows\Shapes\Polygon.cs (1)
141PathGeometry polygonGeometry = new PathGeometry();
System\Windows\Shapes\Polyline.cs (1)
139PathGeometry polylineGeometry = new PathGeometry();
PresentationFramework.Aero (10)
Microsoft\Windows\Themes\BulletChrome.cs (1)
898PathGeometry path = new PathGeometry();
Microsoft\Windows\Themes\ButtonChrome.cs (1)
630PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
323PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)AeroFreezables.ArrowUpGeometry : (int)AeroFreezables.ArrowDownGeometry);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
482PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
613PathGeometry path = new PathGeometry(); 645PathGeometry path = new PathGeometry(); 677PathGeometry path = new PathGeometry(); 709PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
PresentationFramework.Aero2 (10)
Microsoft\Windows\Themes\BulletChrome.cs (1)
898PathGeometry path = new PathGeometry();
Microsoft\Windows\Themes\ButtonChrome.cs (1)
630PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
323PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)AeroFreezables.ArrowUpGeometry : (int)AeroFreezables.ArrowDownGeometry);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
482PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
613PathGeometry path = new PathGeometry(); 645PathGeometry path = new PathGeometry(); 677PathGeometry path = new PathGeometry(); 709PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
PresentationFramework.AeroLite (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
185PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)AeroLiteFreezables.ArrowUpGeometry : (int)AeroLiteFreezables.ArrowDownGeometry);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
PresentationFramework.Classic (6)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
890PathGeometry geometry = new PathGeometry(); 1096PathGeometry geometry = new PathGeometry(); 1126PathGeometry geometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
143PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)ClassicFreezables.ArrowUpGeometry : (int)ClassicFreezables.ArrowDownGeometry);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
PresentationFramework.Luna (9)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
173PathGeometry tabGeometry = new PathGeometry(); 316PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)LunaFreezables.ArrowUpGeometry : (int)LunaFreezables.ArrowDownGeometry);
Microsoft\Windows\Themes\ScrollChrome.cs (4)
449PathGeometry path = new PathGeometry(); 484PathGeometry path = new PathGeometry(); 519PathGeometry path = new PathGeometry(); 554PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
478PathGeometry geometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
PresentationFramework.Royale (9)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
102PathGeometry tabGeometry = new PathGeometry(); 238PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)RoyaleFreezables.ArrowUpGeometry : (int)RoyaleFreezables.ArrowDownGeometry);
Microsoft\Windows\Themes\ScrollChrome.cs (4)
409PathGeometry path = new PathGeometry(); 444PathGeometry path = new PathGeometry(); 479PathGeometry path = new PathGeometry(); 514PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
478PathGeometry geometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
275PathGeometry geometry = new PathGeometry();
ReachFramework (21)
AlphaFlattener\Utility.cs (16)
447static public PathGeometry GetAsPathGeometry(Geometry geo) 449PathGeometry pg = geo as PathGeometry; 453pg = PathGeometry.CreateFromGeometry(geo); 481PathGeometry pathGeometry = geometry as PathGeometry; 511private static bool IsRectangle(PathGeometry geometry) 609PathGeometry pathGeometry = geometry as PathGeometry; 650PathGeometry pg = g as PathGeometry; 847if (geometry is PathGeometry || 862PathGeometry pathGeometry = GetAsPathGeometry(geometry); 885public static int GetPathPointCount(PathGeometry geometry) 2387PathGeometry.ParsePathGeometryData(geometryData, analyzer); 2427PathGeometry.ParsePathGeometryData(geometryData, analyzer);
Serialization\Manager\ReachSerializationUtils.cs (2)
933PathGeometry geometry = new PathGeometry(); 949private void SerializeHyperlink(PathGeometry geometry, String id, Uri navigateUri)
Serialization\VisualSerializer.cs (3)
1193private string PathGeometryToString(PathGeometry path, Matrix map, bool forFill, bool forStroke) 1437PathGeometry pg = null; 1543private static bool IsPathGeometryEmpty(PathGeometry pg, bool forFill, bool forStroke)