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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -