Search code examples
c#wpfuwppathgeometry

Is there an equivalent of Geometry.FillContains in UWP


I need to decide whether a Point is inside a given Path.

In WPF I was able to use Geometry.FillContains: https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.geometry.fillcontains?view=netframework-4.8#System_Windows_Media_Geometry_FillContains_System_Windows_Point_

How can I do the same in UWP?


Solution

  • I know that Win2D gives you much more functionality with regards to Geometry, including hit testing I believe.

    A quick Google search gives me this Q&A which could point you in the right direction - Win2D Geomery Hit Testing