我怎样才能赶上fontSize更改事件? [英] How can I catch the fontSize change event?

查看:185
本文介绍了我怎样才能赶上fontSize更改事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 TextInput 控件写了一个外观,并且当 fontSize 样式改变动态。我看到这是在默认的 TextInputSkin 中完成的,但是不能解释代码的行为。



这样做?



谢谢,

解决方案覆盖 fontSize setter,并在那里发送一个CHANGE事件。


I am writing a skin for a TextInput control, and I want it to change when the fontSize style changes dynamically. I see this is done in the default TextInputSkin but couldn't decipher the behavior form the code.

How is this done?

thanks,

解决方案

override fontSize setter, and dispatch a CHANGE event there.

这篇关于我怎样才能赶上fontSize更改事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆