Blinking TextBlock

前端 未结 3 978
夕颜
夕颜 2020-12-06 03:56

Hi iam trying to make an Wpf TextBlock to blink. I want like when im clicking on an button then the textblock blinks. How can i achive this.

I have tried the followi

3条回答
  •  醉梦人生
    2020-12-06 04:38

    There's no click event on a TextBlock. If you use a button with the textblock as content you can hook up your animation to the button's click event. You may need to style the button to remove 3D look or what else you may choose as default style for your buttons.

提交回复
热议问题