Good morning, sorry by my inglish.
I'm trying to resize a image a 40px from XAML's codebehind , something like that:
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
var imageEditor = new RadImageEditor();
var openDialog = new OpenFileDialog
Multiselect = false,
Filter = IMAGE_EXTENSION
if(openDialog.ShowDialog() == true)
using (FileStream fileStream = openDialog.File.OpenRead())
imageEditor.Image = new RadBitmap(fileStream);
imgPreview.Source = bitmap;
imgPreview is a Image control.
This code doesn't work, please, can you help me with it?