Setting ımage source without using binding

2 posts, 0 answers
  1. Beray
    Beray avatar
    12 posts
    Member since:
    Mar 2014

    Posted 14 May 2014 Link to this post

    Hi, I've created DataBoundListBox like this :


    <telerikPrimitives:RadDataBoundListBox>       
    <telerikPrimitives:RadDataBoundListBox.ItemTemplate>           
    <DataTemplate>                  
    <Image Source="{Binding}"/>            
    </DataTemplate>  
    </telerikPrimitives:RadDataBoundListBox.ItemTemplate>
    </telerikPrimitives:RadDataBoundListBox>

    So, I will create a new writeable bitmap image and I want to set that wbitmap as a Image source. I do not want use binding

    Thanks, Beray
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 19 May 2014 Link to this post

    Hello Beray,

    Thanks for writing and for your question.

    Unfortunately you do not have many options here. Using a DataTemplate implies to use a binding to initialize the different UI elements in it. Why wouldn't you do that?

    Regards,
    Deyan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
Back to Top