随笔分类 -  WPF

摘要:如果要转载请注明来出处(http://www.cnblogs.com/therock),谢谢!描述:可以对按钮的选择或未选择时的文字颜色以及背景图片进行变换。效果如下:首先是自定义按钮类:View Code publicclassTextImageButton:Button{publicTextImageButton(){this.IsSelectedChanged+=newIsSelectedChangedEventHandler(TextImageButton_IsSelectedChanged);}privatevoidTextImageButton_IsSelectedChanged( 阅读全文
posted @ 2012-05-14 16:08 therockthe 阅读(3968) 评论(1) 推荐(0) 编辑
摘要:通过调用Windows API中的GetLastInputInfo来获取最后一次输入的时间usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windows.Data;usingSystem.Windows.Documents;usingSystem.Windows.Input;usingSystem.Windows.Media;usingSystem.Windows.M 阅读全文
posted @ 2012-02-12 18:15 therockthe 阅读(1928) 评论(2) 推荐(3) 编辑

点击右上角即可分享
微信分享提示