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

Sample code is wrong.

1 Answer 9 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
Rob A. asked on 06 Nov 2020, 12:35 AM

FYI 

https://docs.telerik.com/devtools/wpf/controls/radimageeditor/getting-started

In example 3 your trying to pass a RadImageEditor control into a sub that uses RadImageEditorUI.  If you change to the following it works:

Public Shared Sub LoadSampleImage(ByVal imageEditor As RadImageEditor, ByVal image As String)
 
    Using stream As Stream = Application.GetResourceStream(GetResourceUri(SampleImageFolder & image)).Stream
        imageEditor.Image = New Telerik.Windows.Media.Imaging.RadBitmap(stream)
        imageEditor.ApplyTemplate()
        imageEditor.ScaleFactor = 0
    End Using
 
End Sub

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 10 Nov 2020, 12:32 PM

Hello Rob,

Thank you for the fix suggestion. We've updated the article accordingly and the change should go live within the next week. You can also find your Telerik points updated as a small gesture of gratitude for the report.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ImageEditor
Asked by
Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Martin Ivanov
Telerik team
Share this question
or