New to Telerik UI for WPF? Download free 30-day trial

Auto Size RadImageEditor Picture

Environment

Product Version 2018.3.911
Product RadImageEditor for WPF

Description

How to auto size RadImageEditor's picture so that no zooming is applied.

Solution

Set the ScaleFactor property of RadImageEditor to 0.

<telerik:RadImageEditor ScaleFactor="0" /> 
If you use RadImageEditorUI, subscribe to its ImageEditorLoaded event and set the property there.

private void RadImageEditorUI_ImageEditorLoaded(object sender, EventArgs e) 
{ 
    var radImageEditorUI = (RadImageEditorUI)sender; 
    radImageEditorUI.ImageEditor.ScaleFactor = 0; 
} 
In this article