如何捕获 fontSize 更改事件? [英] How can I catch the fontSize change event?
本文介绍了如何捕获 fontSize 更改事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在为 TextInput
控件编写皮肤,并且我希望它在 fontSize
样式动态更改时更改.我看到这是在默认的 TextInputSkin
中完成的,但无法破译代码的行为.
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.
这是怎么做到的?
谢谢,
推荐答案
覆盖 fontSize
setter,并在那里调度 CHANGE 事件.
override fontSize
setter, and dispatch a CHANGE event there.
这篇关于如何捕获 fontSize 更改事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文