Page 1 of 1

3D Transformed Elements Clipped By Page

Posted: 14 Nov 2025, 13:40
by jackmw94
It appears as though elements for which I rotate in 3D space still get clipped by their original 2D bounds. I can't see any clipping settings turned on but expect clipping at the edge of the page is its own system. Is this a bug, and if not then is there anything I can do to mitigate this?

This image shows 3 elements, the side ones are clipped slightly and the centre one is clipped substantially.
Image

Re: 3D Transformed Elements Clipped By Page

Posted: 14 Nov 2025, 18:16
by dstewart
Hi Jack!

So I've just spent some time replicating what you've got going on on your end, and what is happening is less related to the 3D Transformations themselves, but related to the fact that clipping takes place at the 2D level before its rendered in 3D. So, basically, if an Element is clipped in 2D by its container, it will also be in 3D. And that is what's occurring here.

Essentially, the height of your ItemsControl is not tall enough to accommodate all of the items within, which is where the clipping in this situation is happening.

The simplest way to solve this is to simply wrap your ItemsControl into a Canvas Element. Since Canvas Elements never clip their children, your ItemsControl will then find spatial freedom.

Now one thing that will happen when you wrap the ItemsControl into this Canvas, is that your alignment will get all out-of-whack from its original central positioning.

To resolve this, you will want to do the following:

1) Set your Canvas to have a Horizontal Alignment of "Center".

2) In the Canvas' Width Property, bind its Width Property to the 'ActualWidth' of your ItemsControl. (You will have to name your ItemsControl before doing this, so that it can be targeted by name)

This is what all this looks like after I had initially started with a visual result similar to yours (with the top of the ItemsControl clipped):

3DClipping_ItemControlInCanvas.jpg

Let me know if this this resolves things for you, or if we need to look further.

- Dorian

Re: 3D Transformed Elements Clipped By Page

Posted: 19 Nov 2025, 12:54
by jackmw94
Oh look at that!

That's perfect, solved the issue straight away, thanks Dorian!

Re: 3D Transformed Elements Clipped By Page

Posted: 20 Nov 2025, 14:47
by dstewart
Fantastic! My pleasure!
Drop by anytime if there's anything else!