心如止水

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

2012年4月14日

摘要: 原文:http://www.cnblogs.com/tedzhao/archive/2011/11/08/WPF_FrameworkElement_LoadedAndInitialized.html在WPF中FrameworkElement类定义了两个事件:Loaded和Initialized事件。当控件被加载到页面上的 时候,这两个事件会相继发生, 那么这两个事件的差别是什么哪?在进行自定义控件开发的时候,应该如何使用这两个事件那? 小结:Initialized事件:该事件表明Frameworkelement已经被创建, 而且它的所有属性已经被设置。通常情况下子Element的事件会先于父E 阅读全文
posted @ 2012-04-14 17:54 cutebear 阅读(657) 评论(0) 推荐(1) 编辑

摘要: 原文:http://www.c-sharpcorner.com/uploadfile/37db1d/understanding-wpf-application-lifecycle/1. What is the Application Class: When we run any WPF application, it is represented by an instance of the System.Windows.Application class. The job of this class is to track all open windows in our application 阅读全文
posted @ 2012-04-14 16:48 cutebear 阅读(339) 评论(0) 推荐(0) 编辑