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
Post a Comment