When using the RadImageEditor for WPF, I would like to keep the image centered when I programatically set the ScaleFactor property to magnify the image.
I assume that would mean controlling the horizontal and vertical scrollbar positions from code.
Indeed there is no out-of-the-box way to do that with the current implementation of the RadImageEditor. However, you can get the ScrollViewer control from the RadImageEditor's template by using the FrameworkTemplate's FindName() method. If you want to read more about that topic, you can check this MSDN article.
For your convenience, I've also created a demo project which illustrates the above described approach. You can find it attached.
Hope this helps.
Regards,
Todor
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.