摘要:
用户自定义控件中第一步:添加事件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);} 第三步 阅读全文