On Button Press - Change Image Source

前端 未结 2 1990
一个人的身影
一个人的身影 2021-01-27 13:18

Good afternoon,

Im trying to figure out how to change the imagesource of an images when a button is pressed. Then the imagesource should return to its original image whe

2条回答
  •  灰色年华
    2021-01-27 13:51

    The simplest way is to add image to the Button template and change the Image Source with VisualState (Pressed).

    Here is an example:

                
    

提交回复
热议问题