![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
wpf
7fan
这个作者很懒,什么都没留下…
展开
-
WPF listBox listview去掉滚动条
或原创 2013-09-04 16:07:13 · 7389 阅读 · 0 评论 -
代码中使用wpf样式
//设置按钮样式使用此种方法必须将资源文件引用到当前页面 btn.Style = Resources["NoticeButton"] as Style; //此种方法也可以设置样式 //获取App.xaml中的样式个人更喜欢这种 //Style style = (Style)this.FindResou原创 2013-09-12 12:50:24 · 1071 阅读 · 0 评论 -
wpf中手动添加双击事件
public class Tools { //双击事件定时器 private static DispatcherTimer _timer; //是否单击过一次 private static bool _isFirst; static Tools()转载 2013-11-07 00:13:52 · 2763 阅读 · 0 评论 -
TextBox只允许使用数字
wpf的Textbox只允许输入数字,android一个属性就搞定了,wpf还有监听按键,监听内容第一个方法,禁止输入其他字符,第二个方法可以粘贴非法字符 private void TextBox_KeyDownIsNum(object sender, KeyEventArgs e) { TextBox txt = sender as转载 2013-11-08 14:02:41 · 959 阅读 · 0 评论