I'm trying to bind data using XmlDataProvider to image item in radcarousel but it didn't work . i think that am doing something wrong or i miss something . what should i use to read xml file .
<Grid.DataContext> |
<XmlDataProvider x:Name="objectDataProvider" Source="People.xml" XPath="/People/Person" /> |
</Grid.DataContext> |
<telerik:RadCarousel Margin="12,30,12,34" Name="radCarousel1" > |
<telerik:RadCarousel.ContextMenu> |
<ContextMenu AllowDrop="True" HasDropShadow="True" IsTabStop="True" /> |
</telerik:RadCarousel.ContextMenu> |
<Image Source="{Binding XPath=ImageFile}"></Image> |
</telerik:RadCarousel> |
i would appreciate any help, thanks in advance.