Window的匿名Closing 事件

group.Closing += (sender, e) =>
{
try
{
   Code here

}
}
catch (Exception ex)
{
 Exception here
}
};

原文地址:https://www.cnblogs.com/mantian/p/3701692.html