摘要: 用户自定义控件中第一步:添加事件public delegate void EventHandler(object o); public event EventHandler TestEvent;第二步:触发事件private void leftDataTree_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e){ NewPublicClass = (DataTreeModel)this.leftDataTree.SelectedItem; TestEvent(this);} 第三步 阅读全文
posted @ 2012-07-10 15:40 zhaoping 阅读(295) 评论(0) 推荐(0) 编辑