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

Binding the Image

3 Answers 57 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 18 Oct 2011, 06:48 AM
I want to databind the Image to a property on my ViewModel...

not sure how because in Expression blend Image (binding) is grey....

yes I can set it in code but then I have to work around my VM....

can someone please explain...

Thanks
Steve

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 19 Oct 2011, 04:11 PM
Hi Steve,

The Image property of RadImageEditorUI has been implemented as a DependencyProperty just after the last official release - the Q2 SP1 (2011.2.920), so if you use the assemblies of a newer internal build, you would be able to bind the Image property to a RadBitmap property. 

The first version that supports binding of the image property is 2011.2.927.

Please refer to the support ticket you opened for a demo.

Kind regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Thomas
Top achievements
Rank 1
answered on 21 Feb 2012, 11:36 AM
I assume version 2012 Q1 also supports Binding of the Image property.
Can you please provide a sample?
0
Mike
Telerik team
answered on 24 Feb 2012, 08:59 AM
Hello Thomas Mutzl,

The image property of RadImageEditorUI can be bound like any other dependency property:

<telerik:RadImageEditorUI x:Name="ImageEditorUI" Image="{Binding MyImageProperty}" />

or in c# code:

Binding binding = new Binding("MyImageProperty");
binding.Source = this;
binding.Mode = BindingMode.OneWay;
this.ImageEditorUI.SetBinding(RadImageEditorUI.ImageProperty, binding);

Let us know if you have any specific issues with binding.

All the best,
Mike
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ImageEditor
Asked by
Steve
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Thomas
Top achievements
Rank 1
Mike
Telerik team
Share this question
or