Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageVisual rotate on center #39

Open
SepuWeb opened this issue Sep 8, 2024 · 1 comment
Open

ImageVisual rotate on center #39

SepuWeb opened this issue Sep 8, 2024 · 1 comment

Comments

@SepuWeb
Copy link

SepuWeb commented Sep 8, 2024

Hi,
I need to rotate imageVisual based on the center, i use the following code

image

and rotate using TopLeft pivot, now I added the RenderTransformOrigin="0.5, 0.5" like this

image

but it doesn't work.

Can you check it, please?

@mircea21S
Copy link
Owner

Hi,

Didn't really have time to set up an example and try this out. But, what you can try is to set the RenderTransformOrigin property on the RichItemContainer itself. I will probably expose a way to set this through an Attached Property same as ApplyTransform.

Try this out and see if it works! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants