示例代码:
RoutedEventHandler eventHander = null; eventHander = (s, e) => { //添加你的代码 Owner.Loaded -= eventHander; }; Owner.Loaded += eventHander;