80 instantiations of PathGeometry
PresentationCore (21)
System\Windows\Media\CombinedGeometry.cs (2)
246new PathGeometry() : 250new PathGeometry() :
System\Windows\Media\Generated\PathGeometry.cs (1)
136return new PathGeometry();
System\Windows\Media\Geometry.cs (12)
587return new PathGeometry(); 594return new PathGeometry(); 623resultGeometry = new PathGeometry(); 629resultGeometry = new PathGeometry(list.Figures, fillRule, null); 666return new PathGeometry(); 673return new PathGeometry(); 726resultGeometry = new PathGeometry(); 732resultGeometry = new PathGeometry(list.Figures, fillRule, null); 813return new PathGeometry(); 820return new PathGeometry(); 848resultGeometry = new PathGeometry(); 854resultGeometry = new PathGeometry(list.Figures, fillRule, null);
System\Windows\Media\GeometryGroup.cs (1)
43PathGeometry pg = new PathGeometry();
System\Windows\Media\PathFigure.cs (1)
57PathGeometry geometry = new PathGeometry();
System\Windows\Media\PathGeometry.cs (2)
642resultGeometry = new PathGeometry(); 648resultGeometry = new PathGeometry(list.Figures, fillRule, null);
System\Windows\Media\PathStreamGeometryContext.cs (2)
44_pathGeometry = new PathGeometry(); 50_pathGeometry = new PathGeometry();
PresentationFramework (17)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
283hatchGeometry = new PathGeometry();
MS\Internal\Ink\PenCursorManager.cs (2)
450PathGeometry pathGeometry = new PathGeometry(); 504PathGeometry pathGeometry1 = new PathGeometry();
System\Windows\Controls\Primitives\TickBar.cs (4)
526PathGeometry geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) }); 539geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) }); 631PathGeometry geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) }); 644geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) });
System\windows\Documents\CaretElement.cs (1)
718pathGeometry = new PathGeometry();
System\Windows\Documents\CompositionAdorner.cs (1)
295PathGeometry pathGeometry = new PathGeometry();
System\Windows\Documents\DocumentSequenceTextView.cs (1)
161return (new PathGeometry());;
System\Windows\Documents\FixedSOMPageConstructor.cs (1)
946PathGeometry pg = new PathGeometry();
System\Windows\Documents\FixedTextView.cs (1)
233PathGeometry boundingGeometry = new PathGeometry();
System\Windows\Documents\HighlightVisual.cs (1)
247highlightGeometry = new PathGeometry();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8147DefaultConstructor = delegate () { return new System.Windows.Media.PathGeometry(); },
System\Windows\Markup\KnownTypes.cs (1)
1437case KnownElements.PathGeometry: o = new System.Windows.Media.PathGeometry(); break;
System\Windows\Shapes\Polygon.cs (1)
140PathGeometry polygonGeometry = new PathGeometry();
System\Windows\Shapes\Polyline.cs (1)
138PathGeometry polylineGeometry = new PathGeometry();
PresentationFramework.Aero (9)
Microsoft\Windows\Themes\BulletChrome.cs (1)
897PathGeometry path = new PathGeometry();
Microsoft\Windows\Themes\ButtonChrome.cs (1)
629PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
325arrowGeometry = new PathGeometry();
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
481PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
612PathGeometry path = new PathGeometry(); 644PathGeometry path = new PathGeometry(); 676PathGeometry path = new PathGeometry(); 708PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
PresentationFramework.Aero2 (9)
Microsoft\Windows\Themes\BulletChrome.cs (1)
897PathGeometry path = new PathGeometry();
Microsoft\Windows\Themes\ButtonChrome.cs (1)
629PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
325arrowGeometry = new PathGeometry();
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
481PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
612PathGeometry path = new PathGeometry(); 644PathGeometry path = new PathGeometry(); 676PathGeometry path = new PathGeometry(); 708PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
PresentationFramework.AeroLite (2)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
187arrowGeometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
PresentationFramework.Classic (5)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
889PathGeometry geometry = new PathGeometry(); 1095PathGeometry geometry = new PathGeometry(); 1125PathGeometry geometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
145arrowGeometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
PresentationFramework.Luna (8)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
172PathGeometry tabGeometry = new PathGeometry(); 318arrowGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
448PathGeometry path = new PathGeometry(); 483PathGeometry path = new PathGeometry(); 518PathGeometry path = new PathGeometry(); 553PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
475PathGeometry geometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
PresentationFramework.Royale (8)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
101PathGeometry tabGeometry = new PathGeometry(); 240arrowGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
408PathGeometry path = new PathGeometry(); 443PathGeometry path = new PathGeometry(); 478PathGeometry path = new PathGeometry(); 513PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
475PathGeometry geometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
ReachFramework (1)
Serialization\Manager\ReachSerializationUtils.cs (1)
931PathGeometry geometry = new PathGeometry();
193 references to PathGeometry
PresentationCore (97)
System\Windows\Media\Animation\DoubleAnimationUsingPath.cs (6)
50typeof(PathGeometry), 53(PathGeometry)null)); 58public PathGeometry PathGeometry 62return (PathGeometry)GetValue(PathGeometryProperty); 165PathGeometry pathGeometry = PathGeometry; 264PathGeometry pathGeometry = PathGeometry;
System\Windows\Media\Animation\MatrixAnimationUsingPath.cs (6)
188typeof(PathGeometry), 191(PathGeometry)null)); 196public PathGeometry PathGeometry 200return (PathGeometry)GetValue(PathGeometryProperty); 244PathGeometry pathGeometry = PathGeometry; 314PathGeometry pathGeometry = PathGeometry;
System\Windows\Media\Animation\PointAnimationUsingPath.cs (6)
48typeof(PathGeometry), 51(PathGeometry)null)); 56public PathGeometry PathGeometry 60return (PathGeometry)GetValue(PathGeometryProperty); 136PathGeometry pathGeometry = PathGeometry; 215PathGeometry pathGeometry = PathGeometry;
System\Windows\Media\CombinedGeometry.cs (3)
235PathGeometry pathGeometry = GetAsPathGeometry(); 240internal override PathGeometry GetAsPathGeometry() 245PathGeometry geometry1 = (g1 == null) ?
System\Windows\Media\Drawing.cs (1)
108IntersectionDetail IDrawingContent.HitTestGeometry(PathGeometry geometry)
System\Windows\Media\DrawingServices.cs (1)
50internal static IntersectionDetail HitTestGeometry(Drawing drawing, PathGeometry geometry)
System\Windows\Media\EllipseGeometry.cs (2)
283internal override PathGeometry GetAsPathGeometry() 286PathGeometry.ParsePathGeometryData(GetPathGeometryData(), ctx);
System\Windows\Media\FormattedText.cs (1)
1604PathGeometry accumulatedBounds = null;
System\Windows\Media\Generated\PathGeometry.cs (9)
41public new PathGeometry Clone() 43return (PathGeometry)base.Clone(); 50public new PathGeometry CloneCurrentValue() 52return (PathGeometry)base.CloneCurrentValue(); 68PathGeometry target = ((PathGeometry) d); 76PathGeometry target = ((PathGeometry) d); 291Type typeofThis = typeof(PathGeometry);
System\Windows\Media\Geometry.cs (28)
54return PathGeometry.GetPathBounds( 132return PathGeometry.GetPathBounds( 529return PathGeometry.HitTestWithPathGeometry(this, geometry, tolerance, type); 556PathGeometry pathGeometry1 = GetWidenedPathGeometry(pen); 558return PathGeometry.HitTestWithPathGeometry(pathGeometry1, geometry, tolerance, type); 581public virtual PathGeometry GetFlattenedPathGeometry(double tolerance, ToleranceType type) 597PathGeometry resultGeometry = null; 607PathGeometry.FigureList list = new PathGeometry.FigureList(); 616new PathGeometry.AddFigureToListDelegate(list.AddFigureToList), 641public PathGeometry GetFlattenedPathGeometry() 658public virtual PathGeometry GetWidenedPathGeometry(Pen pen, double tolerance, ToleranceType type) 676PathGeometry resultGeometry = null; 689PathGeometry.FigureList list = new(); 702new PathGeometry.AddFigureToListDelegate(list.AddFigureToList), 717new PathGeometry.AddFigureToListDelegate(list.AddFigureToList), 745public PathGeometry GetWidenedPathGeometry(Pen pen) 764public static PathGeometry Combine( 772return PathGeometry.InternalCombine(geometry1, geometry2, mode, transform, tolerance, type); 782public static PathGeometry Combine( 788return PathGeometry.InternalCombine( 807public virtual PathGeometry GetOutlinedPathGeometry(double tolerance, ToleranceType type) 823PathGeometry resultGeometry = null; 832PathGeometry.FigureList list = new PathGeometry.FigureList(); 841new PathGeometry.AddFigureToListDelegate(list.AddFigureToList), 866public PathGeometry GetOutlinedPathGeometry() 875internal abstract PathGeometry GetAsPathGeometry();
System\Windows\Media\GeometryGroup.cs (3)
36PathGeometry pathGeometry = GetAsPathGeometry(); 41internal override PathGeometry GetAsPathGeometry() 43PathGeometry pg = new PathGeometry();
System\Windows\Media\GeometryHitTestParameters.cs (2)
15private PathGeometry _hitGeometryInternal; // The internal geometry we use for hit testing 105internal PathGeometry InternalHitGeometry
System\Windows\Media\GlyphTypeface.cs (1)
1292PathGeometry.ParsePathGeometryData(pathGeoData, ctx);
System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (2)
26internal HitTestWithGeometryDrawingContextWalker(PathGeometry geometry) 456private PathGeometry _geometry;
System\Windows\Media\IDrawingContent.cs (1)
55IntersectionDetail HitTestGeometry(PathGeometry geometry);
System\Windows\Media\LineGeometry.cs (2)
179internal override PathGeometry GetAsPathGeometry() 182PathGeometry.ParsePathGeometryData(GetPathGeometryData(), ctx);
System\Windows\Media\Parsers.cs (1)
311PathGeometry pathGeometry = context.GetPathGeometry();
System\Windows\Media\PathFigure.cs (2)
57PathGeometry geometry = new PathGeometry(); 60PathGeometry flattenedGeometry = geometry.GetFlattenedPathGeometry(tolerance, type);
System\Windows\Media\PathGeometry.cs (5)
85public static PathGeometry CreateFromGeometry(Geometry geometry) 594internal static PathGeometry InternalCombine( 602PathGeometry resultGeometry = null; 722MilRectD bounds = PathGeometry.GetPathBoundsAsRB( 899internal override PathGeometry GetAsPathGeometry()
System\Windows\Media\PathStreamGeometryContext.cs (4)
27s_defaultFillRule = (FillRule)PathGeometry.FillRuleProperty.GetDefaultValue(typeof(PathGeometry)); 296internal PathGeometry GetPathGeometry() 463private PathGeometry _pathGeometry;
System\Windows\Media\RectangleGeometry.cs (2)
380internal override PathGeometry GetAsPathGeometry() 383PathGeometry.ParsePathGeometryData(GetPathGeometryData(), ctx);
System\Windows\Media\RenderData.cs (1)
165public IntersectionDetail HitTestGeometry(PathGeometry geometry)
System\Windows\Media\StreamGeometry.cs (4)
166bounds = PathGeometry.GetPathBoundsAsRB( 274internal override PathGeometry GetAsPathGeometry() 277PathGeometry.ParsePathGeometryData(GetPathGeometryData(), ctx); 288PathGeometry thisAsPathGeometry = GetAsPathGeometry();
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (4)
100PathGeometry.AddFigureToListDelegate addFigureCallback, 114PathGeometry.AddFigureToListDelegate addFigureCallback, 125PathGeometry.AddFigureToListDelegate addFigureCallback, 136PathGeometry.AddFigureToListDelegate addFigureCallback,
PresentationFramework (28)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
234PathGeometry hatchGeometry = null;
MS\Internal\Ink\PenCursorManager.cs (2)
450PathGeometry pathGeometry = new PathGeometry(); 504PathGeometry pathGeometry1 = new PathGeometry();
System\Windows\Controls\Primitives\TickBar.cs (2)
526PathGeometry geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) }); 631PathGeometry geo = new PathGeometry(new PathFigure[] { new PathFigure(pt1, segments, true) });
System\windows\Documents\CaretElement.cs (1)
715PathGeometry pathGeometry;
System\Windows\Documents\CompositionAdorner.cs (1)
295PathGeometry pathGeometry = new PathGeometry();
System\Windows\Documents\FixedSOMPageConstructor.cs (6)
59PathGeometry.ParsePathGeometryData(geometry.GetPathGeometryData(), this); 322PathGeometry pathGeom = PathGeometry.CreateFromGeometry(geom); 937private void _ProcessSolidPath(Matrix transform, PathGeometry pathGeom) 946PathGeometry pg = new PathGeometry(); 955private void _ProcessOutlinePath(Matrix transform, PathGeometry pathGeom)
System\Windows\Documents\FixedTextBuilder.cs (2)
1335g = PathGeometry.CreateFromGeometry(geom); 1418geom = PathGeometry.CreateFromGeometry(geom);
System\Windows\Documents\FixedTextView.cs (1)
233PathGeometry boundingGeometry = new PathGeometry();
System\Windows\Documents\HighlightVisual.cs (1)
167PathGeometry highlightGeometry = null;
System\Windows\FrameworkElement.cs (1)
4978PathGeometry combinedClip = Geometry.Combine(localClip, slotClip, GeometryCombineMode.Intersect, null);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
539case 446: t = () => typeof(PathGeometry); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
3310Type type = typeof(System.Windows.Media.PathGeometry); 3311DependencyProperty dp = System.Windows.Media.PathGeometry.FiguresProperty; 3313this.GetXamlType(typeof(System.Windows.Media.PathGeometry)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8144typeof(System.Windows.Media.PathGeometry),
System\Windows\Markup\KnownTypes.cs (3)
1851return System.Windows.Media.PathGeometry.FiguresProperty; 2510case KnownElements.PathGeometry: return (o as System.Windows.Media.PathGeometry).Figures; 5993case KnownElements.PathGeometry: t = typeof(System.Windows.Media.PathGeometry); break;
System\Windows\Shapes\Polygon.cs (1)
140PathGeometry polygonGeometry = new PathGeometry();
System\Windows\Shapes\Polyline.cs (1)
138PathGeometry polylineGeometry = new PathGeometry();
PresentationFramework.Aero (10)
Microsoft\Windows\Themes\BulletChrome.cs (1)
897PathGeometry path = new PathGeometry();
Microsoft\Windows\Themes\ButtonChrome.cs (1)
629PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
322PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)AeroFreezables.ArrowUpGeometry : (int)AeroFreezables.ArrowDownGeometry);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
481PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
612PathGeometry path = new PathGeometry(); 644PathGeometry path = new PathGeometry(); 676PathGeometry path = new PathGeometry(); 708PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
PresentationFramework.Aero2 (10)
Microsoft\Windows\Themes\BulletChrome.cs (1)
897PathGeometry path = new PathGeometry();
Microsoft\Windows\Themes\ButtonChrome.cs (1)
629PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
322PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)AeroFreezables.ArrowUpGeometry : (int)AeroFreezables.ArrowDownGeometry);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
481PathGeometry borderGeometry = new PathGeometry();
Microsoft\Windows\Themes\ScrollChrome.cs (4)
612PathGeometry path = new PathGeometry(); 644PathGeometry path = new PathGeometry(); 676PathGeometry path = new PathGeometry(); 708PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
PresentationFramework.AeroLite (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
184PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)AeroLiteFreezables.ArrowUpGeometry : (int)AeroLiteFreezables.ArrowDownGeometry);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
PresentationFramework.Classic (6)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
889PathGeometry geometry = new PathGeometry(); 1095PathGeometry geometry = new PathGeometry(); 1125PathGeometry geometry = new PathGeometry();
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
142PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)ClassicFreezables.ArrowUpGeometry : (int)ClassicFreezables.ArrowDownGeometry);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
PresentationFramework.Luna (9)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
172PathGeometry tabGeometry = new PathGeometry(); 315PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)LunaFreezables.ArrowUpGeometry : (int)LunaFreezables.ArrowDownGeometry);
Microsoft\Windows\Themes\ScrollChrome.cs (4)
448PathGeometry path = new PathGeometry(); 483PathGeometry path = new PathGeometry(); 518PathGeometry path = new PathGeometry(); 553PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
475PathGeometry geometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
PresentationFramework.Royale (9)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
101PathGeometry tabGeometry = new PathGeometry(); 237PathGeometry arrowGeometry = (PathGeometry)GetCachedFreezable(ascending ? (int)RoyaleFreezables.ArrowUpGeometry : (int)RoyaleFreezables.ArrowDownGeometry);
Microsoft\Windows\Themes\ScrollChrome.cs (4)
408PathGeometry path = new PathGeometry(); 443PathGeometry path = new PathGeometry(); 478PathGeometry path = new PathGeometry(); 513PathGeometry path = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
475PathGeometry geometry = new PathGeometry();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
274PathGeometry geometry = new PathGeometry();
ReachFramework (21)
AlphaFlattener\Utility.cs (16)
446public static PathGeometry GetAsPathGeometry(Geometry geo) 448PathGeometry pg = geo as PathGeometry; 452pg = PathGeometry.CreateFromGeometry(geo); 480PathGeometry pathGeometry = geometry as PathGeometry; 510private static bool IsRectangle(PathGeometry geometry) 608PathGeometry pathGeometry = geometry as PathGeometry; 649PathGeometry pg = g as PathGeometry; 846if (geometry is PathGeometry || 861PathGeometry pathGeometry = GetAsPathGeometry(geometry); 884public static int GetPathPointCount(PathGeometry geometry) 2386PathGeometry.ParsePathGeometryData(geometryData, analyzer); 2426PathGeometry.ParsePathGeometryData(geometryData, analyzer);
Serialization\Manager\ReachSerializationUtils.cs (2)
931PathGeometry geometry = new PathGeometry(); 947private void SerializeHyperlink(PathGeometry geometry, String id, Uri navigateUri)
Serialization\VisualSerializer.cs (3)
1192private string PathGeometryToString(PathGeometry path, Matrix map, bool forFill, bool forStroke) 1436PathGeometry pg = null; 1542private static bool IsPathGeometryEmpty(PathGeometry pg, bool forFill, bool forStroke)