Historically, WPF is not able to support 2D non-affine transformations out of the box. Typical solutions require setting up a 3D scene. Of course, I’m trying to avoid creating a 3D scene in my application and instead use a package or library to apply non-affine transformations to basic framework elements.
CSS has rotate3d() which pretty much does this for websites. I’d love to know how they engineered that feature, or how I can apply similar transformations to WPF framework elements.
I’ve spent some time looking into SkiaSharp’s SKElement Class but I’ve been unable to figure out how to apply the transformation to that control’s render.
I’ve also found some of the older threads on this topic of course, but with them being so old I’m hoping there has been some sort of advancements since then that could allow this behavior.
See the below:
-
Non-Affine image transformations in .NET
-
Free transform corners of image in C#
-
Perspective transform with WPF