作者:岳述穗__ | 来源:互联网 | 2023-10-12 17:17
接着之前的使Button的Content变化的例子,这里给出使Button的透明度变化的写法。前台写法:后台写法:效果图:Opacity的值正在变小效果还不错,前台是用Blen
接着之前的使Button的Content变化的例子,这里给出使Button的透明度变化的写法。
>前台写法:

>后台写法:

效果图:Opacity的值正在变小
src="https://img8.php1.cn/3cdc5/1e804/9f3/aaf0081c633ebd3d.jpeg">
效果还不错,前台是用Blend生成的,后台的代码是按照前台的Xaml摸索着写的。
使用Animation实现Button的透明度Opacity变化,布布扣,bubuko.com