c# - how can i change the image in button inside in datatemplate wpf -


how in title, have datatemplate telerik radtileview, in large content have toolbar play button, idea when user click button, images in tile view change automatically, need change image inside play button stop icon, data template:

<datatemplate x:key="contenttemplate">             <telerik:radfluidcontentcontrol>                 <telerik:radfluidcontentcontrol.content>                     <border>                         <image source="{binding frame}" />                     </border>                 </telerik:radfluidcontentcontrol.content>                 <telerik:radfluidcontentcontrol.largecontent>                     <grid>                         <grid>                             <image source="{binding frame}" />                         </grid>                         <border borderbrush="black" borderthickness="1" background="#80000000" height="80" verticalalignment="bottom">                             <stackpanel orientation="horizontal" horizontalalignment="center" verticalalignment="center">                                 <button style="{staticresource botongrande}" name="botonimagenatras" click="botonimagenatras_click">                                     <image style="{staticresource imagengrande}" source="/visorseproban;component/imagenes/izquierda.png" />                                 </button>                                 <button style="{staticresource botongrande}" name="botonimagenesplay" click="botonimagenesplay_click">                                     <image style="{staticresource imagengrande}" source="/visorseproban;component/imagenes/play_on.png" />                                 </button>                                 <button style="{staticresource botongrande}" name="botoncaputarimagen" click="botoncaputarimagen_click">                                     <image style="{staticresource imagengrande}" source="/visorseproban;component/imagenes/captura_img_on.png" />                                 </button>                                 <button style="{staticresource botongrande}" name="botonimagenadelante" click="botonimagenadelante_click">                                     <image style="{staticresource imagengrande}" source="/visorseproban;component/imagenes/derecha.png" />                                 </button>                             </stackpanel>                         </border>                     </grid>                 </telerik:radfluidcontentcontrol.largecontent>             </telerik:radfluidcontentcontrol>         </datatemplate> 

thanks help! regards

try attaching event change image when event fire. can try javascript if running app in browser.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -