Binding the Image

4 posts, 0 answers
  1. Steve
    Steve avatar
    2 posts
    Member since:
    Jul 2011

    Posted 18 Oct 2011 Link to this post

    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...

  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 19 Oct 2011 Link to this post

    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 >>

  3. DevCraft R3 2016 release webinar banner
  4. Thomas Mutzl
    Thomas Mutzl avatar
    39 posts
    Member since:
    Oct 2006

    Posted 21 Feb 2012 Link to this post

    I assume version 2012 Q1 also supports Binding of the Image property.
    Can you please provide a sample?
  5. Mike
    Mike avatar
    640 posts

    Posted 24 Feb 2012 Link to this post

    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,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top