单击菜单可防止丢失焦点窗口

时间:2012-01-19 11:19:30

标签: wpf

enter image description here在我的WPF应用程序中,从菜单栏中选择不同菜单时,我的窗口会被取消激活。我希望当前窗口成为活动窗口。有没有办法防止这种情况发生?

  private void HostWindow_Deactivated(object sender, EventArgs e)
    {
       //Code for making the window small and move to side using 3d animation
    }

HostWindow是在运行时保存usercontrol表单的窗口

0 个答案:

没有答案