08 2008 档案

.net Thread process UI
摘要:假设线程A创建了窗口W,同时为了工作需要线程A有创建了工作线程B。 STA中,对窗口W中与UI(界面)相关属性的修改,必须在创建窗口的线程A中完成。换句话说,线程B不允许修改W的UI属性(否则抛出InvalidOperationException,消息“Control control name ac... 阅读全文

posted @ 2008-08-24 18:15 oyl 阅读(406) 评论(0) 推荐(0)

[STAThread]的含义
摘要:[STAThread]STAThread:Single Thread Apartment Thread.(单一线程单元线程)[]是用来表示Attributes;[STAThread]是一种线程模型,用在程序的入口方法上(在C#和VB.NET里是Main()方法),来指定当前线程的ApartmentS... 阅读全文

posted @ 2008-08-24 16:53 oyl 阅读(245) 评论(0) 推荐(0)

STA thread
摘要:C#程序的主函数写[STA Thread] 属性是什么目的?(What is the purpose of the [STA Thread] attribute for the Main method of a C# program? )C#中,[STAThread]代表什么意思?如何用?> Sin... 阅读全文

posted @ 2008-08-24 16:50 oyl 阅读(920) 评论(0) 推荐(0)

WPF routed event
摘要:What’s routed event? It is an amazing thing, after have read Dependency Property code, I can found that the design thought of routed event is as much ... 阅读全文

posted @ 2008-08-19 13:56 oyl 阅读(3126) 评论(0) 推荐(1)

VS2008 察看与调试.net源代码设置
摘要:Configuring Visual Studio to Debug .NET Framework Source CodeIt's finally here - the launch of the .NET Reference Source project. This post (hopefully... 阅读全文

posted @ 2008-08-10 20:43 oyl 阅读(408) 评论(1) 推荐(0)

WPF Dependency property ,overrideMetaData issue
摘要:Seems to know,because MyStackPanel2 has register, so will new a property, _metaMap has no base type's metadata, so if we use :static MyStackPanel2() ... 阅读全文

posted @ 2008-08-05 14:36 oyl 阅读(702) 评论(0) 推荐(0)

WPF DependencyProperty
摘要:o Section1 :Brief introduction1. CLR properties are really just safe wrappers around a Private member variable:privateint x;publicint X{ get { return ... 阅读全文

posted @ 2008-08-04 20:39 oyl 阅读(2289) 评论(0) 推荐(0)

导航