windows phone 7 - Silverlight/WP7: programmatically change the button background image -



windows phone 7 - Silverlight/WP7: programmatically change the button background image -

<button x:name="btnsearch" height="120" width="120" margin="-20,-30,0,0" click="btnsearch_click" borderthickness="0" borderbrush="{x:null}" visibility="visible" > <button.background> <imagebrush x:name="searchimage" imagesource="images\appbar.feature.search.rest.png" stretch="fill"/> </button.background>

in above xaml have alter imagesource programmatically different image. how do ?

an approach can utilize described here. since question not specify action code takes alter background, therefore, may have adapt code in referred link bit. note may have homecoming imagebrush converter, if intend go downwards path suggested in post.

hth, indyfromoz

silverlight windows-phone-7

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -