随笔分类 - WPF
摘要:如果要转载请注明来出处(http://www.cnblogs.com/therock),谢谢!描述:可以对按钮的选择或未选择时的文字颜色以及背景图片进行变换。效果如下:首先是自定义按钮类:View Code publicclassTextImageButton:Button{publicTextImageButton(){this.IsSelectedChanged+=newIsSelectedChangedEventHandler(TextImageButton_IsSelectedChanged);}privatevoidTextImageButton_IsSelectedChanged(
阅读全文
摘要:通过调用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
阅读全文