support for .NET framework 3.5

Still have bugs
This commit is contained in:
NaBian committed 2019-01-21 00:43:10 +08:00
1 parent 5878039e21
commit 7d6b491f25
704 files changed
+48273 -33

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;
}
}