c# - WPF Data binding and Image -


i have xaml code

<listview x:name="listorderlist" margin="58,55,0,0" background="{x:null}">     <listview.view>         <gridview>             <gridviewcolumn header="description" displaymemberbinding="{binding description}"/>             <gridviewcolumn header="status">                 <gridviewcolumn.celltemplate>                     <datatemplate>                         <image source="{binding status}"/>                     </datatemplate>                 </gridviewcolumn.celltemplate>             </gridviewcolumn>         </gridview>     </listview.view> </listview> 

in c# have enum status , know <image source="{binding status}"/> not going work. how can example have 2 values in status enum. yes , no. how can assign small icons enum's values , work bindings easily.

thanks you.

check out ivalueconverter

with can check value delivered binding , create image object display.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -