xaml - Binding image to data -


i have list of products, , want them have diferents images, how bind image each of products in list have diferent image?

    <pivotitem header="lista">         <listview x:name="list1" itemssource="{x:bind produtoviewmodel.produtos}">             <listview.itemtemplate>                 <datatemplate x:datatype="list:produto">                     <listview>                    <stackpanel>                         <textblock text="{x:bind nome, mode=oneway}" margin="100,10,10,10"/>                         <textblock text="{x:bind preco, mode=oneway}" margin="100,10,10,10"/>                         <textblock text="{x:bind disponivel, mode=oneway}" margin="100,10,10,10"/>                         <textblock text="{x:bind fornecedor, mode=oneway}" margin="100,10,10,10"/>                         <textblock text="{x:bind categoria, mode=oneway}" margin="100,10,10,10"/>                         <image source="assets/mouse.png" height="50" width="80" margin="10,-300,100,10"/>                         <image source="assets/teclado.png" height="50" width="80" margin="10,-100,100,10"/>                     </stackpanel>                 </listview>             </datatemplate>         </listview.itemtemplate>     </listview> 


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -