Flycoder

Flying with codes

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2012年7月4日

摘要: 1. 在loaded事件里动态创建控件,并设置DataContext,PropertyChanged 的事件先去 创建控件的load的事件。2. xaml里创建子控件,并在主控件load的事件给你子控件设置DataContex,事件顺序是先执行子控件load的,然后子控件的PropertyChanged事件 阅读全文
posted @ 2012-07-04 12:31 flycoder 阅读(429) 评论(0) 推荐(0)

2011年11月14日

摘要: we know that Listbox default has the virtualization feature, so the ScrollViewer.CanContentScroll default is true, but there are also some side effects for this featurewe will find that the scroll bar doesn't disappear or scroll accordingly when we change the count of the Source of the Listview, 阅读全文
posted @ 2011-11-14 17:36 flycoder 阅读(682) 评论(0) 推荐(0)

2011年9月7日

摘要: <Grid Grid.IsSharedSizeScope="True"> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*" SharedSizeGroup="g1"></ColumnDefinition> <ColumnDefinition Width="9*" SharedSizeGroup="g2"></ColumnDefinition> </Grid.Co 阅读全文
posted @ 2011-09-07 16:21 flycoder 阅读(495) 评论(0) 推荐(0)

2011年6月22日

摘要: 1 your 2 with3 more4 for5 think6 thank7 good 阅读全文
posted @ 2011-06-22 23:09 flycoder 阅读(147) 评论(0) 推荐(0)

2011年6月13日

摘要: I want to say something here now. I got diarrhea at Saturday evening, I had been entering washing room seven times in two hours, also my stomach hurted very much, it made me very weak. I cannot do anything but sleep. I had been sleeping for all Sunday, I felt a little better until today morning afte 阅读全文
posted @ 2011-06-13 11:45 flycoder 阅读(294) 评论(0) 推荐(0)

2011年5月23日

摘要: Tips:DotNet4.0 后台GC只对工作站模式(并发GC)有效,后台GC和并发GC区别在于,后台GC允许GC和内存分配同时执行,并且允许收集第0代和第1代的对象。4.0之前的并发GC工作模式如下, 它会尽量避免托管线程挂起给用户带来延迟感,它将所有线程之挂起两次,不是整个生命周期都挂起,没挂起的时间,托管线程能够继续分配内存,直到达到临时内存末尾,如果到达临时内存末尾,并且有一个并发GC在执行,那么托管线程挂起,所以,只要临时内存段没有耗尽,就可以避免延迟 阅读全文
posted @ 2011-05-23 17:51 flycoder 阅读(222) 评论(0) 推荐(0)

2011年5月12日

摘要: Notice it is only supported on XP and 2003, if you use it in Win7, maybe you will meet some problems in some controls or third controls like TreeListView.http://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx 阅读全文
posted @ 2011-05-12 14:27 flycoder 阅读(364) 评论(0) 推荐(0)

2011年4月20日

摘要: Record About MVC-MVP-MVVmI do want to say anything, please just look at these articles.http://nirajrules.wordpress.com/2009/07/18/mvc-vs-mvp-vs-mvvm/http://www.c-sharpcorner.com/uploadfile/rmcochran/mvc_intro12122005162329pm/mvc_intro.aspxhttp://msdn.microsoft.com/en-us/magazine/dd419663.aspx 阅读全文
posted @ 2011-04-20 17:54 flycoder 阅读(117) 评论(0) 推荐(0)

2011年3月30日

摘要: 1.System.ComponentModel.ISynchronizeInvoke interface.Control.Invoke, Control.BeginInvoke. How can it implement. 1). it makes delegate as message by mashal mechanism. 2). This message will be invoked by Win32 using it's message mechanism.InquireInvokeFALSE not UI thread, so need to invoke the Inv 阅读全文
posted @ 2011-03-30 11:15 flycoder 阅读(170) 评论(0) 推荐(0)

2010年3月26日

摘要: 对象①锁:每条SQL语句②隔离:事务锁①并发问题丢失更新未确认的读取(脏读)不一致的分析(非重复读):多次读取相同的数据(行)不一致(其他用户更改update)幻像读:多次读取有不存在和新增的数据(其他用户插入insert或删除delete)隔离级别隔离级别脏读不可重复读取幻像说明未提交读(read uncommitted)是是是如果其他事务更新,不管是否提交,... 阅读全文
posted @ 2010-03-26 10:06 flycoder 阅读(261) 评论(0) 推荐(0)