在我的WPF应用程序中,从菜单栏中选择不同菜单时,我的窗口会被取消激活。我希望当前窗口成为活动窗口。有没有办法防止这种情况发生?
private void HostWindow_Deactivated(object sender, EventArgs e)
{
//Code for making the window small and move to side using 3d animation
}
HostWindow是在运行时保存usercontrol表单的窗口