【发布时间】:2016-07-04 20:22:21
【问题描述】:
我在 UserControl 中有一个弹出控件:
<UserControl ....>
<Popup x:Name="popUp" IsOpen="False" AllowsTransparency="True" LostFocus="popUp_LostFocus">
....
</Popup>
</UserControl>
弹出窗口有一个 LostFocus 事件:
private void popUp_LostFocus(object sender, RoutedEventArgs e)
{
...
}
但是当我在窗口中使用用户控件并且弹出窗口失去焦点时,事件不起作用。
【问题讨论】: