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

Image Path with a converter

1 Answer 34 Views
BreadCrumb
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 2
Alex asked on 22 Jul 2011, 03:13 PM
Hello,

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 ?

Thanks,
Alex,

1 Answer, 1 is accepted

Sort by
0
Accepted
Zarko
Telerik team
answered on 26 Jul 2011, 05:36 PM
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.

Regards,
Zarko
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!

Tags
BreadCrumb
Asked by
Alex
Top achievements
Rank 2
Answers by
Zarko
Telerik team
Share this question
or