Image Path with a converter

2 posts, 1 answers
  1. Alex
    Alex avatar
    13 posts
    Member since:
    Aug 2010

    Posted 22 Jul 2011 Link to this post


    My name is Alex, and I want to build something very similiar to what you have done in your demos with a treeview and a breadcrumb. The problem is that the icon for the item is not an ImageSource but an array of bytes, which means that I need to pass it through a converter.

    Can that be done ?

  2. Answer
    Zarko avatar
    755 posts

    Posted 26 Jul 2011 Link to this post

    Hi Alex,
    Yes, you can use a ContainerBinding to set the Image property of the BreadcrumbItems and set the converter there.
    For further references could you please examine the attached project (in it I don't convert byte arrays to ImageSources, instead in the converter I just return the value, but you can see where to place the converter) and if you have further questions please feel free to ask.
    Note: Note that you'll have to set the ContainerBinding to both the HierarchicalDataTemplate and its ItemTemplate, so that you'll have both images - the one in front of the RadBreadcrumb and the one in the DropDownContent of the splitbuttons.

    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft banner
Back to Top