会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
liu_xh
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
12
下一页
2018年3月12日
C# WPF DataGrid 隔行变色及内容居中对齐
摘要: 具体内容见:https://www.cnblogs.com/changbaishan/p/4387351.html
阅读全文
posted @ 2018-03-12 11:17 liu_xh
阅读(1111)
评论(0)
推荐(0)
2018年3月9日
wpf 定时器应用,在界面动态刷新时间
摘要: 1 DispatcherTimer = new DispatcherTimer(); 2 Timer.Tick += Timer_Tick; 3 Timer.Interval = TimeSpan.FromSeconds(1); 4 Timer.Start(); 5 6 7 private void Timer_Tick(object sender, EventArgs e) ...
阅读全文
posted @ 2018-03-09 14:46 liu_xh
阅读(2470)
评论(0)
推荐(0)
C# 获取今天是星期几
摘要: 1 //获取今天是星期几 2 string[] Day = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" }; 3 string week = Day[Convert.ToInt32(DateTime.Now.DayOfWeek.ToString("d"))].ToSt...
阅读全文
posted @ 2018-03-09 14:22 liu_xh
阅读(5805)
评论(0)
推荐(0)
wpf 纯样式写按钮
摘要: 1 2 3 4 5 6 7 8 9 10 11
阅读全文
posted @ 2018-03-09 10:08 liu_xh
阅读(408)
评论(0)
推荐(0)
2018年3月8日
C# IP正则表达式
摘要: 1 public static bool IsValidIp(string strIn) 2 { 3 bool b = Regex.IsMatch(strIn, @"^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$"); 4 5 return b; 6 }
阅读全文
posted @ 2018-03-08 16:13 liu_xh
阅读(4228)
评论(2)
推荐(0)
C#初学者使用file.creat()创建文件后,显示正由另一进程使用
摘要: 从一个目录选择一个文件,复制到另一个目录
阅读全文
posted @ 2018-03-08 10:59 liu_xh
阅读(1586)
评论(0)
推荐(0)
2018年3月6日
C# 串口编程 对端口的访问被拒绝
摘要: 感谢Sunny秋刀鱼。https://www.cnblogs.com/527289276qq/p/5595798.html 在页面或者窗口Unloaded事件中关闭串口即可。
阅读全文
posted @ 2018-03-06 11:49 liu_xh
阅读(5872)
评论(0)
推荐(0)
2018年3月3日
wpf 几种常用控件样式
摘要: 转自:http://blog.csdn.net/xuejiren/article/details/39449515
阅读全文
posted @ 2018-03-03 09:12 liu_xh
阅读(474)
评论(0)
推荐(0)
2018年2月25日
事件-订阅理解
摘要: 事件和事件处理器之间通过事件订阅来关联。 例如:this.button1.click += new RouteEventHandler(Button1_click); Button1_click()就是方法,也即事件处理器。
阅读全文
posted @ 2018-02-25 22:15 liu_xh
阅读(530)
评论(0)
推荐(0)
wpf Path
摘要: <Path Data="M 0,0 L 200,100 L 100,200 Z" Stroke="Black" Fill="Red"/> Path画图形:M 0,0把笔移到点(0,0)处。用直线延伸至坐标(200,100)的地方。再用一条直线延伸至坐标(100,200)的地方。
阅读全文
posted @ 2018-02-25 20:24 liu_xh
阅读(214)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
12
下一页
公告