This is a migrated thread and some comments may be shown as answers.

RadImageEditor with zoom control

1 Answer 274 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 18 Apr 2014, 12:30 AM
I would like to use the RadImageEditor with only scrolling and zoom/magnify available.   Scroll bars seem to be working by default, but I also need a zoom feature like the slider present in RadImageEditorUI

That doesn't seem to be an option using RadImageEditorUI, I can't hide the tool panel on the left.  And if it's possible with the RadImageEditor, I haven't discovered how.

The xaml-sdk on Github  is very educational, but didn't address this question.

thanks


1 Answer, 1 is accepted

Sort by
0
Accepted
Petya
Telerik team
answered on 21 Apr 2014, 10:33 AM
Hi,

You can add a ZoomController to your view and bind it to the RadImageEditor in it to allow zoom in/out functionality like the one in RadImageEditorUI.
<telerik:RadImageEditor Name="imageEditor"  />
<imaging:ZoomController Grid.Row="1" ImageEditor="{Binding ElementName=imageEditor}"  Margin="0 8"/>
The imaging namespace should be defined as follows:
xmlns:imaging="clr-namespace:Telerik.Windows.Media.Imaging;assembly=Telerik.Windows.Controls.ImageEditor"

Alternatively, you can adopt implicit styles in your application and modify the default style of RadImageEditorUI to fit your needs. More information about implicit styles is available here.

I hope this helps.

Regards,
Petya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ImageEditor
Asked by
Robert
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or