随笔分类 -  GUI

摘要:利用 WPF 的 Trigger 系统,也可以很简单的只使用xmal实现三态按钮。在Window或UserControl的资源中声明按钮的style并加入触发功能。使用的时候直接在button里复写style就可以了,废话不多说,直接上代码: 使用时在button中引用: 阅读全文
posted @ 2015-04-17 08:27 rizo 阅读(3330) 评论(2) 推荐(2)
摘要:Initializing View Instances Created in Interface BuilderView instances that are created in Interface Builder don't callinitWithFrame:when their nib fi... 阅读全文
posted @ 2015-03-13 14:59 rizo 阅读(218) 评论(0) 推荐(1)