摘要:
padding用在容器内部,margin用在容器外部 如图所示: 比如:padding-top:10px;是指容器内的内容距离容器的顶部有10个像素,是包含在容器内的;margin-top:10px;是指容器本身的顶部距离其他容器有10个像素,不饱含在容器内
阅读全文
posted @ 2013-02-17 14:51
chuwachen
阅读(128)
推荐(0)
摘要:
In xamlIn xaml.csfor (int index = 0; index (item, "InnerList"); if (innerList!= null) { innerList.ItemsSource = data...
阅读全文
posted @ 2013-02-17 14:08
chuwachen
阅读(168)
推荐(0)
摘要:
Most controls in WPF inherit a series ofeventsfromtheUIElementclass such asPreviewMouseMove(tunneling) andMouseMove(bubbling) events.Because these eve...
阅读全文
posted @ 2013-02-17 12:41
chuwachen
阅读(185)
推荐(0)
摘要:
How to add sub items to "Second Item" dynamicallyIn xaml file // Initialize context menu event ...
阅读全文
posted @ 2013-02-16 18:51
chuwachen
阅读(121)
推荐(0)
摘要:
Create a border with dot line and round corner How to create a border as the following graph shows for example, the effect for mouse hover/selected a ...
阅读全文
posted @ 2013-02-16 18:35
chuwachen
阅读(99)
推荐(0)
摘要:
Dispatcher可为特定线程维护其按优先顺序排列的工作项队列。当在线程中创建了Dispatcher时,它将成为可与该线程关联的唯一Dispatcher,即使Dispatcher已经关闭。如果尝试获取当前线程的CurrentDispatcher,而此时该线程没有关联的Dispatcher,则将创建...
阅读全文
posted @ 2013-02-16 11:13
chuwachen
阅读(308)
推荐(0)
摘要:
二维码生成QRCodeEncoder qrCodeEncoder = new QRCodeEncoder();qrCodeEncoder.QRCodeEncodeMode = QRCodeEncoder.ENCODE_MODE.BYTE;// support different modeqrCode...
阅读全文
posted @ 2013-02-04 12:24
chuwachen
阅读(1263)
推荐(0)
摘要:
Multicast delegates are used extensively in event handling.Event source objects send event notifications to recipient objects that have registered to ...
阅读全文
posted @ 2013-02-02 15:46
chuwachen
阅读(140)
推荐(0)
摘要:
系统性调试方法13条黄金规则:理解需求制造失败简化测试用例:目的:排除不起作用的因素 ;减少测试用例的运行时间;最重要的是,使测试用例更容易调试。读取恰当的错误信息:重点关注首先出现的那些消息。检查显而易见的问题从解释和中分离出事实分而治之:整理一份清单,列出潜在问题以及如何调试它们(调试归根到底是...
阅读全文
posted @ 2013-02-02 14:29
chuwachen
阅读(223)
推荐(0)
摘要:
Both delegates and interfaces enable a class designer to separate type declarations and implementation.A giveninterfacecan be inherited and implemente...
阅读全文
posted @ 2013-02-01 17:10
chuwachen
阅读(104)
推荐(0)