2015年4月5日

WPF控件委托

摘要: this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart)delegate { //要执行的代码 }); 阅读全文

posted @ 2015-04-05 16:01 坐看疯云 阅读(1146) 评论(0) 推荐(0) 编辑

2014年12月17日

自定义控件添加事件

摘要: http://blog.csdn.net/hugengyong/article/details/5653538 阅读全文

posted @ 2014-12-17 08:55 坐看疯云 阅读(148) 评论(0) 推荐(0) 编辑

2014年7月24日

C# WPF 之 遍历子控件

摘要: /// /// 检查非空字段 /// /// /// private void CheckTextBoxNotNull(ref bool IsOk, params TextBox[] textboxes) ... 阅读全文

posted @ 2014-07-24 13:42 坐看疯云 阅读(3064) 评论(0) 推荐(0) 编辑

2014年6月1日

wpf中UserControl制作

摘要: 连接:http://blog.csdn.net/huang9012/article/details/17282733 阅读全文

posted @ 2014-06-01 16:08 坐看疯云 阅读(193) 评论(0) 推荐(0) 编辑

C#的颜色解析及操作和相关Brush

摘要: 一、颜色表示方式 // // Summary: // Creates a System.Drawing.Color structure from a 32-bit ARGB value. // // Parameters:... 阅读全文

posted @ 2014-06-01 15:02 坐看疯云 阅读(1544) 评论(0) 推荐(0) 编辑

2014年5月27日

读取XML文件的指定节点的值 并转换为Item

摘要: cmb_State_Send.ItemsSource = null; XmlDocument doc = new XmlDocument(); doc.Load("D:\\模板\\WorkstationSta... 阅读全文

posted @ 2014-05-27 15:52 坐看疯云 阅读(452) 评论(0) 推荐(0) 编辑

2014年5月21日

下拉框改变事件:获取下拉框中当前选择的文本 SelectionChanged事件

摘要: /// /// 下拉框改变事件:获取下拉框中当前选择的文本 /// /// /// private string myComboBox_SelectionChanged(object sender, Selectio... 阅读全文

posted @ 2014-05-21 16:00 坐看疯云 阅读(2078) 评论(0) 推荐(0) 编辑

WPF ComboBox

摘要: WPF ComboBoxWPFComboBox创建一个ComboBox控件,并设置ComboBox控件的名称,高度,宽度。及设置ComboBox的垂直和水平对齐。输出结果如图所示:添加ComboBox项IsSelected属性为ComboxBox中的默认选中项输出结果如图所示:在运行时添加和删除Co... 阅读全文

posted @ 2014-05-21 15:51 坐看疯云 阅读(1495) 评论(0) 推荐(0) 编辑

2014年4月9日

WPF 设置TextBox为空时,背景为文字提示

摘要: 阅读全文

posted @ 2014-04-09 17:03 坐看疯云 阅读(420) 评论(0) 推荐(0) 编辑

2014年3月31日

获取打印机信息

摘要: using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing.Printing;namespace FindPrinterDemo{ public partial class Demo : Form { public Demo() { this.Text= "本地打印机列表"; ListBox fListBox = new ListBox(); fListBox.D... 阅读全文

posted @ 2014-03-31 14:39 坐看疯云 阅读(557) 评论(0) 推荐(0) 编辑

导航