This question is locked. New answers and comments are not allowed.
Hello Telerik.
I would like to have a simple version of your editor from your sample CustomImageEditor UI, but I need some changes.
Loaded image should has its natural dimensions. If with or height is bigger than some value, the picture should preserve aspect ratio and change its dimensions to fit.
I am not sure about the influence of the RadImageEditor With and Height properties to Image with and height properties.
It seems to me, auto values are not working at all:
Also setting ScaleFactor = 0 has no effect at all:
All my opened pictures have size 5 x 10 but they are much bigger in real.
Thank you very much.
Tom
I would like to have a simple version of your editor from your sample CustomImageEditor UI, but I need some changes.
Loaded image should has its natural dimensions. If with or height is bigger than some value, the picture should preserve aspect ratio and change its dimensions to fit.
I am not sure about the influence of the RadImageEditor With and Height properties to Image with and height properties.
It seems to me, auto values are not working at all:
<telerik:RadImageEditor x:Name="imageEditor" ScaleFactor="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto" />
Also setting ScaleFactor = 0 has no effect at all:
public SimpleImageEditor(){ InitializeComponent(); this.FadeIn = (Storyboard)this.LayoutRoot.Resources["FadeIn"]; this.FadeOut = (Storyboard)this.LayoutRoot.Resources["FadeOut"]; this.imageEditor.ToolSettingsContainer = this.settingsContainer; this.imageEditor.Loaded += new RoutedEventHandler(imageEditor_Loaded);}void imageEditor_Loaded(object sender, RoutedEventArgs e){ this.imageEditor.History.CurrentImageChanged += new EventHandler(History_CurrentImageChanged);}void History_CurrentImageChanged(object sender, EventArgs e){ if (this.imageEditor.Image != null) { this.imageEditor.ScaleFactor = 0; }}All my opened pictures have size 5 x 10 but they are much bigger in real.
Thank you very much.
Tom
