Separate version

This commit is contained in:
NaBian committed 2019-01-21 11:12:38 +08:00
1 parent a2574dc955
commit db61ae9567
587 files changed
+44639 -657

No files matched your search

@@ -0,0 +1,25 @@
using System.Windows.Media;
namespace HandyControl.Expression.Drawing
{
internal static class PathGeometryHelper
{
public static bool IsStroked(this PathSegment pathSegment) => pathSegment.IsStroked;
public static PathGeometry AsPathGeometry(this Geometry original)
{
if (original == null)
{
return null;
}
if (!(original is PathGeometry geometry))
{
return PathGeometry.CreateFromGeometry(original);
}
return geometry;
}
internal static Geometry FixPathGeometryBoundary(Geometry geometry) => geometry;
}
}