How to maintain added image position when zoom out in richitemcontrol #37
Replies: 2 comments
-
Hi! What you've described is not that easy to achieve. What you can try is to set the MaxScale limit to 1 so you have the initial viewport of the image when zooming out. You can try to listen to the Zooming event on RichItemsControl and call BringIntoView on that item with the image, as right now zooming is based on mouse position (this might be a new feature to be able to choose how the zooming behaves). Calling BringIntoView should put the item in the center of the viewport. Otherwise, you will have to wait after the next version release so I can give it a try maybe there are some limitations from the library and I might offer some features. That's all I can say for now. Hope it helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. Simply saying i have plus icon and minus icon like map, when i tried to click plus sign the image should be zoom 100% then 150%. and when i click minus button it should zoom out . zoom out limit should be the first position of main image. |
Beta Was this translation helpful? Give feedback.
-
Hi i have added an item to the RichItemControl . I added that image with the same height and width as Viewport. I need to dock the image position in the container that means i should able to zoom in the image but the zoom out limit should be the 100 % of the image with keeping their initial position.Now when i try to zoom in and zoom out, the images position will vary . Is there any way to do this ??
Thank You !
Beta Was this translation helpful? Give feedback.
All reactions