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

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -