Hello,
when I was using windows forms back in the days there was a very helpful property for a window, it was called PreventWindowFocusChange or something. when enabled and working with a multiple window program, this prevents you from being able to use the other windows in the back and only lets you use the one your supposed to work with. How do I manage this in WPF?
thanks in advance.
解决方案This[^] could help.
What you ask does not mean "focus change"; you want to keep window activated. Activated status and focus are related but they are very different concept. Focus is something related only the keyboard input only and is the attribute of focused controls.
If somebody implemented that feature it would be a disaster; and the author would deserve public execution. Who would ever tolerate a program which behaves like that? I still hope you need something different and maybe this is the Kiosk Mode.
Please see:
Running a Web Site in Kiosk Mode with C#[^],
c# program ctrl-alt-del screen windows 7[^].
—SA